protected override void Initialize() { if (!(Screens.Peek() is StartGameScreen)) { startGameScreen = new StartGameScreen(this); Screens.Push(startGameScreen); } base.Initialize(); }
private void EnterGame() { //"join game 2" StartGameScreen startGame = new StartGameScreen(networkInterface,true); mainMenu.AddMenu(startGame); }
private void FinishCreateGame() { StartGameScreen startGame = new StartGameScreen(networkInterface,false); mainMenu.AddMenu(startGame); state = State.DefaultState; }