/// <summary> /// Reset values for a fresh playthrough /// </summary> /// <param name="playerLives"></param> public void SetupLevel(int playerLives) { MaxLives = CurrentLifes = playerLives; CurrentScore = 0; ScoreUpdateEvent.Trigger(CurrentScore); _conditionCounter = 0; }
public void AddScore(int scoreToAdd) { CurrentScore += scoreToAdd; HighScore = Mathf.Max(CurrentScore, HighScore); ScoreUpdateEvent.Trigger(CurrentScore); }