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