示例#1
0
 public void SaveAndExit()
 {
     Debug.Log("Clicked save and exit game");
     gameData.Food.ConvertFoodPositionsToPersist();
     gameProceedingStrategy.Save(gameData);
     Application.Quit();
 }
示例#2
0
    public void SaveGame()
    {
        GameData gameData = new GameData();

        gameData.SelectedPiece = this.from;
        gameData.WhoGoes       = this.whoGoes;
        gameData.Achievements  = this.gameData.Achievements;

        boardManager.SaveData(gameData);

        gameProceedingStrategy.Save(gameData);
    }