private void Start() { bool cheack = ClassDataFomater.DataCheack(UnityEngine.Application.persistentDataPath + "/" + saveFileName); Debug.Log("データは" + cheack); userData = new SampleUserData(); numberText.text = userData.countNum.ToString(); }
public void OnClickLoadButton() { userData = ClassDataFomater.Deserialize <SampleUserData>(UnityEngine.Application.persistentDataPath + "/" + saveFileName); numberText.text = userData.countNum.ToString(); }