fix:1、更换项目,使用winter来创建
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
namespace FlowerPower
|
||||
namespace LoveLegend
|
||||
{
|
||||
public class PassViewModel : BaseModel
|
||||
{
|
||||
@@ -39,69 +39,6 @@ namespace FlowerPower
|
||||
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
|
||||
|
||||
// private static string jsonFilePath = Path.Combine(Application.persistentDataPath, "taskrecord1.json");
|
||||
|
||||
// public static void saveRecord(List<int> list)
|
||||
// {
|
||||
|
||||
// string save = JsonConvert.SerializeObject(list);
|
||||
// Debug.Log(save);
|
||||
// if (File.Exists(jsonFilePath)) File.Delete(jsonFilePath);
|
||||
// File.WriteAllText(jsonFilePath, save);
|
||||
|
||||
// }
|
||||
// public static List<int> getTaskRecord()
|
||||
// {
|
||||
// if (File.Exists(jsonFilePath))
|
||||
// {
|
||||
// string jsonstr = File.ReadAllText(jsonFilePath);
|
||||
|
||||
// Debug.Log("-------------------------");
|
||||
// Debug.Log(jsonstr);
|
||||
// return JsonConvert.DeserializeObject<List<int>>(jsonstr);
|
||||
// //return JsonUtility.FromJson<MyData>(json);
|
||||
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// Debug.Log("Data file not found!");
|
||||
// return new List<int>();
|
||||
// }
|
||||
// }
|
||||
|
||||
// private static string jsonFilePath_time = Path.Combine(Application.persistentDataPath, "timerecord2.json");
|
||||
|
||||
// public static void saveTimeRecord(List<int> list)
|
||||
// {
|
||||
|
||||
// string save = JsonConvert.SerializeObject(list);
|
||||
// Debug.Log(save);
|
||||
// if (File.Exists(jsonFilePath_time)) File.Delete(jsonFilePath_time);
|
||||
// File.WriteAllText(jsonFilePath_time, save);
|
||||
|
||||
// }
|
||||
// public static List<int> getTimeRecord()
|
||||
// {
|
||||
// if (File.Exists(jsonFilePath_time))
|
||||
// {
|
||||
// string jsonstr = File.ReadAllText(jsonFilePath_time);
|
||||
|
||||
// Debug.Log("-------------------------");
|
||||
// Debug.Log(jsonstr);
|
||||
// return JsonConvert.DeserializeObject<List<int>>(jsonstr);
|
||||
// //return JsonUtility.FromJson<MyData>(json);
|
||||
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// Debug.Log("Data file not found!");
|
||||
// return new List<int>();
|
||||
// }
|
||||
// }
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user