protected Update ( |
||
gameTime | Provides a snapshot of timing values. | |
return | void |
protected override void Update(GameTime gameTime)
{
// Allows the game to exit
if (GamePad.GetState(PlayerIndex.One).Buttons.Back == ButtonState.Pressed)
this.Exit();
gameObjects.ForEach(o => o.Update(gameTime));
base.Update(gameTime);
}