Пример #1
0
    private void Start()
    {
        bool cheack = ClassDataFomater.DataCheack(UnityEngine.Application.persistentDataPath + "/" + saveFileName);

        Debug.Log("データは" + cheack);
        userData        = new SampleUserData();
        numberText.text = userData.countNum.ToString();
    }
Пример #2
0
 public void OnClickLoadButton()
 {
     userData        = ClassDataFomater.Deserialize <SampleUserData>(UnityEngine.Application.persistentDataPath + "/" + saveFileName);
     numberText.text = userData.countNum.ToString();
 }