public bool LoadSaves() { // Clear saves // gameSaves = new List<GameSave>(); // Load saves gameSaves = GameSaveUtility.LoadSaves(); // string base_filename = "save_{0}"; // int i = 0; // string filename = String.Format(base_filename, i); // while(FileUtility.CheckFile(filename)) // { // GameSave save = FileUtility.LoadFile<GameSave>(filename); // gameSaves.Add(save); // Debug.Log("Loaded " + filename); // i++; // filename = String.Format(base_filename, i); // } // return false; if (gameSaves.Count > 0) { return(true); } return(false); }
public void PlayButton() { GameSaveUtility.gameSaveSelected = gameSaveSelected; GameSaveUtility.Load(); GameSaveUtility.loadGame = true; SceneManager.LoadScene("Tactics"); }
public int CheckSaves() { return(GameSaveUtility.LoadSaves().Count); }