Example #1
0
 void Reset()
 {
     lives = 5;
     cannon.Reset();
     ball.Reset();
     can1.Reset();
     can2.Reset();
     can3.Reset();
     can1.ResetMinSpeed();
     can2.ResetMinSpeed();
     can3.ResetMinSpeed();
 }
Example #2
0
    /// <summary>
    /// Resets the game world to its initial state, so that a new game is ready to begin.
    /// </summary>
    public void Reset()
    {
        lives = 5;
        Score = 0;

        // reset all game objects
        cannon.Reset();
        ball.Reset();
        can1.Reset();
        can2.Reset();
        can3.Reset();
        can1.ResetMinSpeed();
        can2.ResetMinSpeed();
        can3.ResetMinSpeed();
    }