Esempio n. 1
0
 public void IncrementScoreBy(int x)
 {
     if (x <= 0)
     {
         return;
     }
     score += pointsScale * x;
     if (score > highScore)
     {
         if (!newHighScore)
         {
             Audio.Instance.PlayNewHighScore();
         }
         newHighScore = true;
         highScore    = score;
     }
     DisplayScore();
     scoreAnim.Bounce();
 }