public void Update(GameTime gameTime) { ball.Update(gameTime); can1.Update(gameTime); can2.Update(gameTime); can3.Update(gameTime); }
public void Update(GameTime gameTime) { if (IsGameOver) { return; } ball.Update(gameTime); can1.Update(gameTime); can2.Update(gameTime); can3.Update(gameTime); }
/// <summary> /// Updates all game objects for one frame of the game loop. /// </summary> /// <param name="gameTime">An object that contains information about the game time that has passed.</param> public void Update(GameTime gameTime) { // in the "game over" state, don't update any objects if (IsGameOver) { return; } ball.Update(gameTime); can1.Update(gameTime); can2.Update(gameTime); can3.Update(gameTime); }