Example #1
0
 private void AddLife()
 {
     levelManager.AddBonusBall(ballCount);
     // we need to decrease the bonus factor because in the AddBonusBall it
     // has been increased for handling score bonus
     Ball.bonusFactor--;
 }
Example #2
0
 void HandleScores()
 {
     LevelManager.currentScore        += 15;
     score.GetComponent <Text> ().text = LevelManager.currentScore.ToString();
     levelCompleteScore.GetComponent <Text> ().text = LevelManager.currentScore.ToString();
     if ((LevelManager.currentScore / (1000 * Ball.bonusFactor)) >= 1)
     {
         levelManager.AddBonusBall(balls);
     }
 }