public void IncreaseScoreCount() { _currentScore += ScorePerEnemy; if (_currentScore > _maxScore) { _maxScore = _currentScore; MaxScoreCountUpdated?.Invoke(_maxScore); } ScoreCountUpdated?.Invoke(_currentScore); }
public void Initialize() { HealthCountUpdated?.Invoke(_currentHealthCount); ScoreCountUpdated?.Invoke(_currentScore); MaxScoreCountUpdated?.Invoke(_maxScore); }