2021-05-08 11:09:03 +08:00
|
|
|
|
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
|
|
|
|
|
|
{
|
2021-09-23 18:14:53 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 划船机训练保存在本地的路径
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public static string RowerRecordFolder
|
|
|
|
|
|
{
|
|
|
|
|
|
get
|
|
|
|
|
|
{
|
|
|
|
|
|
if (!Directory.Exists(Application.persistentDataPath + "/RowerRecords/"))
|
|
|
|
|
|
{
|
|
|
|
|
|
Directory.CreateDirectory(Application.persistentDataPath + "/RowerRecords/");
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
return Application.persistentDataPath + "/RowerRecords/";
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
2021-05-08 11:09:03 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 课程训练保存在本地的路径
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public static string MapWorkoutRecordFolder
|
|
|
|
|
|
{
|
|
|
|
|
|
get
|
|
|
|
|
|
{
|
|
|
|
|
|
if(!Directory.Exists(Application.persistentDataPath + "/MapWorkoutRecords/")){
|
|
|
|
|
|
Directory.CreateDirectory(Application.persistentDataPath + "/MapWorkoutRecords/");
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
return Application.persistentDataPath + "/MapWorkoutRecords/";
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
2021-12-07 16:44:36 +08:00
|
|
|
|
|
|
|
|
|
|
public static string MapWorkoutRecordTempFolder
|
|
|
|
|
|
{
|
|
|
|
|
|
get
|
|
|
|
|
|
{
|
|
|
|
|
|
if (!Directory.Exists(Application.persistentDataPath + "/MapWorkoutTempRecords/"))
|
|
|
|
|
|
{
|
|
|
|
|
|
Directory.CreateDirectory(Application.persistentDataPath + "/MapWorkoutTempRecords/");
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
return Application.persistentDataPath + "/MapWorkoutTempRecords/";
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
2021-05-08 11:09:03 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 设备连接缓存在本地的路径
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public static string DeviceCacheFolder
|
|
|
|
|
|
{
|
|
|
|
|
|
get
|
|
|
|
|
|
{
|
|
|
|
|
|
return Application.persistentDataPath;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
2021-06-10 17:46:43 +08:00
|
|
|
|
|
|
|
|
|
|
public static string LogFolder
|
|
|
|
|
|
{
|
|
|
|
|
|
get
|
|
|
|
|
|
{
|
|
|
|
|
|
if (!Directory.Exists(Application.persistentDataPath + "/Logs/"))
|
|
|
|
|
|
{
|
|
|
|
|
|
Directory.CreateDirectory(Application.persistentDataPath + "/Logs/");
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
return Application.persistentDataPath + "/Logs/";
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
2021-05-08 11:09:03 +08:00
|
|
|
|
}
|