Пример #1
0
        public void IncreaseScoreCount()
        {
            _currentScore += ScorePerEnemy;

            if (_currentScore > _maxScore)
            {
                _maxScore = _currentScore;

                MaxScoreCountUpdated?.Invoke(_maxScore);
            }

            ScoreCountUpdated?.Invoke(_currentScore);
        }
Пример #2
0
 public void Initialize()
 {
     HealthCountUpdated?.Invoke(_currentHealthCount);
     ScoreCountUpdated?.Invoke(_currentScore);
     MaxScoreCountUpdated?.Invoke(_maxScore);
 }