public (IGameState currentGameState, IGameState newGameState) Update(GameTime gameTime) { _btnRestart.Update(gameTime); _metricsDisplay.Update(gameTime); if (_startGame) { return(this, new GamePlayState(_gameState)); } return(this, null); }
public (bool changeGameState, IGameState newGameState) Update(GameTime gameTime) { _btnRestart.Update(gameTime); _metricsDisplay.Update(gameTime); if (_startGame) { return(true, new GamePlayState()); } return(false, null); }