Example #1
0
 /// <summary>
 /// Called when the player fails to catch an acorn
 /// </summary>
 public void AddMissed()
 {
     Missed += 1;
     healthBarUI.DepleteHealth();
     comboCounter.BreakCombo();
     if (Missed == MAXED_ALLOWED_MISSES)
     {
         GameManager.Instance.GameOver();
         finalScoreText.GetComponent <Text>().text = "x " + score;
         finalMissText.GetComponent <Text>().text  = "x " + Missed;
         finalComboText.GetComponent <Text>().text = "x " + comboCounter.HighestComboOfRound;
     }
 }