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