protected override void Update(GameTime gameTime)
        {
            Input.Update();
            GameState.Update(gameTime);

            base.Update(gameTime);
        }
Example #2
0
 /// <summary>
 /// Makes sure that the currently active game state calls Update.
 /// </summary>
 /// <param name="gameTime">An object containing information about the time that has passed in the game.</param>
 public void Update(GameTime gameTime)
 {
     if (currentGameState != null)
     {
         currentGameState.Update(gameTime);
     }
 }
Example #3
0
 public void Update(GameTime gameTime)
 {
     _current.Update(gameTime);
 }
 public void Update(GameTime gameTime)
 {
     currentGameState?.Update(gameTime);
 }