public void MakeGameTemplate(Game gameTemplate = null) { GameSettings GS; if (gameTemplate != null) { game = gameTemplate; GS = game.GetSettings(); editor.UpdateGameUI(GS); game.SetSettings(GS, false); } else { game = new Game(); GS = GetGameSettings(); game.SetSettings(GS, false); game.EmptyGrid(); } AddTemplate(); }