public void SaveAndExit() { Debug.Log("Clicked save and exit game"); gameData.Food.ConvertFoodPositionsToPersist(); gameProceedingStrategy.Save(gameData); Application.Quit(); }
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); }