Exemple #1
0
 void Start()
 {
     UIscore = GetComponentInChildren <UI_Score>();
     UIlives = GetComponentInChildren <UI_Lives>();
     UIlives.UpdateLives(lives);
     UIscore.UpdateScore(score);
 }
Exemple #2
0
 //Positive numbers to increase, negative to decrease
 public void ModifyScore(int points)
 {
     score += points;
     UIscore.UpdateScore(score);
 }