示例#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);
 }