Пример #1
0
 public void Update(GameTime gameTime)
 {
     if (_current != null)
     {
         _current.Update(gameTime);
     }
     _gameStateManager.Update(gameTime);
 }
Пример #2
0
 /// <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);
 }