protected override void Initialize() { base.Initialize(); StaticImageGameState splashScreenState = new StaticImageGameState(this, GameTextureKey.GameStartupImage, 5.0, 0.0, false); MenuGameState menuState = new MenuGameState(this); ChessMatchState chessMatchGameState = new ChessMatchState(this); splashScreenState.NextState = menuState; menuState.ChessMatchState = chessMatchGameState; chessMatchGameState.MenuState = menuState; m_gameStateManager.Change(splashScreenState); m_gameStateManager.Push(menuState); }
private void startGameButton_OnPress(object sender, System.EventArgs e) { m_gameStateManager.Change(m_chessMatchState); }