示例#1
0
        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);
        }
示例#2
0
 public void PlayButton()
 {
     GameSaveUtility.gameSaveSelected = gameSaveSelected;
     GameSaveUtility.Load();
     GameSaveUtility.loadGame = true;
     SceneManager.LoadScene("Tactics");
 }
示例#3
0
 public int CheckSaves()
 {
     return(GameSaveUtility.LoadSaves().Count);
 }