Exemple #1
0
    private void DecreaseHealthCount()
    {
        _currentHealthCount--;

        if (_currentHealthCount >= 0)
        {
            HUDEvents.OnUpdateHealthHUD(_currentHealthCount);
        }
        else
        {
            PlayerEvents.OnPlayerDied();
        }
    }
Exemple #2
0
 private void InitializePlayerHealth()
 {
     _currentHealthCount = _healthData.PlayerMaxHealth;
     HUDEvents.OnUpdateHealthHUD(_currentHealthCount);
 }