Example #1
0
        public void IncreaseScoreCount()
        {
            _currentScore += ScorePerEnemy;

            if (_currentScore > _maxScore)
            {
                _maxScore = _currentScore;

                MaxScoreCountUpdated?.Invoke(_maxScore);
            }

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