예제 #1
0
        public (IGameState currentGameState, IGameState newGameState) Update(GameTime gameTime)
        {
            _btnRestart.Update(gameTime);

            _metricsDisplay.Update(gameTime);

            if (_startGame)
            {
                return(this, new GamePlayState(_gameState));
            }

            return(this, null);
        }
예제 #2
0
        public (bool changeGameState, IGameState newGameState) Update(GameTime gameTime)
        {
            _btnRestart.Update(gameTime);

            _metricsDisplay.Update(gameTime);

            if (_startGame)
            {
                return(true, new GamePlayState());
            }

            return(false, null);
        }