Пример #1
0
 public void Update(GameTime gameTime)
 {
     ball.Update(gameTime);
     can1.Update(gameTime);
     can2.Update(gameTime);
     can3.Update(gameTime);
 }
Пример #2
0
    public void Update(GameTime gameTime)
    {
        if (IsGameOver)
        {
            return;
        }

        ball.Update(gameTime);
        can1.Update(gameTime);
        can2.Update(gameTime);
        can3.Update(gameTime);
    }
Пример #3
0
    /// <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);
    }