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