public void LoadData() { MyDataTest data = MyJSON.LoadInfo <MyDataTest>(Application.dataPath + "/../data.json"); if (data == null) { Debug.Log("File not found or not formated"); } else { Debug.Log(MyJSON.FormatJson(JsonUtility.ToJson(data))); } }
public MyDataTest() { instance = this; }
public void SaveData() { MyDataTest data = new MyDataTest(); MyJSON.SaveInfo <MyDataTest>(data, "data.json"); }