Beispiel #1
0
        public void DecreaseHealthCount()
        {
            if (--_currentHealthCount == 0)
            {
                GameEnded?.Invoke();
            }

            HealthCountUpdated?.Invoke(_currentHealthCount);
        }
Beispiel #2
0
 public void Initialize()
 {
     HealthCountUpdated?.Invoke(_currentHealthCount);
     ScoreCountUpdated?.Invoke(_currentScore);
     MaxScoreCountUpdated?.Invoke(_maxScore);
 }