Ejemplo n.º 1
0
    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)));
        }
    }
Ejemplo n.º 2
0
 public MyDataTest()
 {
     instance = this;
 }
Ejemplo n.º 3
0
    public void SaveData()
    {
        MyDataTest data = new MyDataTest();

        MyJSON.SaveInfo <MyDataTest>(data, "data.json");
    }