Example #1
0
 /// <summary>
 /// Once the ball hits the ground (Floor collider), we increment the level, ball position, reset everything.
 /// If we are out of levels, return and display the game over text.
 /// </summary>
 public void IncrementLevel()
 {
     levelNumber++;
     if (levelNumber >= levelPositions.Count)
     {
         GameOver();
         return;
     }
     kickingPosition.position = levelPositions[levelNumber];
     activeBall = false;
     football.ResetBall();
     aimingObject.ResetAimingObject();
     UpdateText();
 }