# Conflicts: # Assets/Resources/UI/Font/HanWangZonYi.ttf.meta # Assets/Resources/UI/language.json # Assets/Scenes/Login.unity # Assets/Scripts/Apis/Models/MapRoute.cs # Assets/Scripts/App.cs # Assets/Scripts/ConfigHelper.cs # Assets/Scripts/Scenes/Ride/Scripts/PlayerController.cs # Assets/Scripts/UIManager.cs # Assets/Scripts/Utils/Utils.cs
112 lines
3.3 KiB
C#
112 lines
3.3 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using System.IO;
|
|
using UnityEngine;
|
|
|
|
public static class PFConstants
|
|
{
|
|
/// <summary>
|
|
/// 划船机训练保存在本地的路径
|
|
/// </summary>
|
|
public static string RowerRecordFolder
|
|
{
|
|
get
|
|
{
|
|
if (!Directory.Exists(Application.persistentDataPath + "/RowerRecords/"))
|
|
{
|
|
Directory.CreateDirectory(Application.persistentDataPath + "/RowerRecords/");
|
|
}
|
|
|
|
return Application.persistentDataPath + "/RowerRecords/";
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// 划船机训练保存在本地的路径
|
|
/// </summary>
|
|
public static string RowerRecordCacheFolder
|
|
{
|
|
get
|
|
{
|
|
if (!Directory.Exists(Application.persistentDataPath + "/RowerRecordCaches/"))
|
|
{
|
|
Directory.CreateDirectory(Application.persistentDataPath + "/RowerRecordCaches/");
|
|
}
|
|
|
|
return Application.persistentDataPath + "/RowerRecordCaches/";
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// 课程训练保存在本地的路径
|
|
/// </summary>
|
|
public static string MapWorkoutRecordFolder
|
|
{
|
|
get
|
|
{
|
|
if(!Directory.Exists(Application.persistentDataPath + "/MapWorkoutRecords/")){
|
|
Directory.CreateDirectory(Application.persistentDataPath + "/MapWorkoutRecords/");
|
|
}
|
|
|
|
return Application.persistentDataPath + "/MapWorkoutRecords/";
|
|
}
|
|
}
|
|
|
|
public static string MapWorkoutRecordTempFolder
|
|
{
|
|
get
|
|
{
|
|
if (!Directory.Exists(Application.persistentDataPath + "/MapWorkoutTempRecords/"))
|
|
{
|
|
Directory.CreateDirectory(Application.persistentDataPath + "/MapWorkoutTempRecords/");
|
|
}
|
|
|
|
return Application.persistentDataPath + "/MapWorkoutTempRecords/";
|
|
}
|
|
}
|
|
/// <summary>
|
|
/// 设备连接缓存在本地的路径
|
|
/// </summary>
|
|
public static string DeviceCacheFolder
|
|
{
|
|
get
|
|
{
|
|
return Application.persistentDataPath;
|
|
}
|
|
}
|
|
|
|
public static string VideoFolder
|
|
{
|
|
get
|
|
{
|
|
return Application.streamingAssetsPath+ @"/AVProVideoSamples";
|
|
}
|
|
}
|
|
|
|
public static string LogFolder
|
|
{
|
|
get
|
|
{
|
|
if (!Directory.Exists(Application.persistentDataPath + "/Logs/"))
|
|
{
|
|
Directory.CreateDirectory(Application.persistentDataPath + "/Logs/");
|
|
}
|
|
|
|
return Application.persistentDataPath + "/Logs/";
|
|
}
|
|
}
|
|
|
|
public static Color Green => new Color(0.1529412f, 0.8901961f, 0.3882353f, 0.6f);
|
|
public static Color Yellow => new Color(0.8901961f, 0.8313726f, 0.1529412f, 0.6f);
|
|
public static Color Orange => new Color(0.8901961f, 0.5686275f, 0.1529412f, 0.6f);
|
|
public static Color Red => new Color(0.8901961f, 0.2313726f, 0.1529412f, 0.6f);
|
|
public static Color Pink => new Color(0.9764706f, 0.1882353f, 0.5254902f, 1f);
|
|
public static Color grey => new Color(0.3607843f, 0.3607843f, 0.4313726f, 1f);
|
|
public static Color Dark => new Color(0.1372549f, 0.1372549f, 0.1764706f, 1f);//23232D
|
|
public static Color LightGrey => new Color(0.3607843f, 0.3607843f, 0.4313726f, 1f); // 5C5C6E
|
|
|
|
|
|
}
|