protected override void Update(GameTime gameTime) { Input.Update(); GameState.Update(gameTime); base.Update(gameTime); }
/// <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); } }
public void Update(GameTime gameTime) { _current.Update(gameTime); }
public void Update(GameTime gameTime) { currentGameState?.Update(gameTime); }