Beispiel #1
0
 public void DealDamageToPlayer(short damage)
 {
     _playerCurrentHP -= damage;
     _sounds.PlayGruntSound();
     HUD.UpdateHPDisplay();
     if (IsDead())
     {
         Time.timeScale = 0;
         _gameOverObject.DisplayGameOverScreen();
     }
 }