public void Update(GameTime gameTime) { if (_current != null) { _current.Update(gameTime); } _gameStateManager.Update(gameTime); }
/// <summary> /// Updates all objects in the game world, by first calling HandleInput and then Update. /// </summary> /// <param name="gameTime">An object containing information about the time that has passed.</param> protected override void Update(GameTime gameTime) { HandleInput(); GameStateManager.Update(gameTime); }