private void Start() { bool cheack = ClassDataFomater.DataCheack(UnityEngine.Application.persistentDataPath + "/" + saveFileName); Debug.Log("データは" + cheack); userData = new SampleUserData(); numberText.text = userData.countNum.ToString(); }
private void Start() { //データロード if (ClassDataFomater.DataCheack(UnityEngine.Application.persistentDataPath + "/GatyaData")) { userData = ClassDataFomater.Deserialize <GatyaUserData>(UnityEngine.Application.persistentDataPath + "/GatyaData"); } //なければここで作成 else { userData = new GatyaUserData(); } //表示物更新 pointText.text = userData.point.ToString(); }