示例#1
0
 public void newSaveInFile()
 {
     SaveToFile.fileNum++;
     SaveToFile.dataPath = Application.persistentDataPath + "/GameDetails" + SaveToFile.fileNum.ToString() + ".dat";
     StartCoroutine(SaveToFile.save(true));
 }
示例#2
0
 // Update is called once per frame
 void Update()
 {
     StartCoroutine(SaveToFile.fileCheck());
     StartCoroutine(SaveToFile.save(false));
     //Debug.Log (area * 3);
 }