Пример #1
0
 public void Damage()
 {
     _cameraShaker.ActivateShake();
     if (_shieldActive)
     {
         ActivateShield(false);
         return;
     }
     _lives--;
     ShowPlayerHits();
     _uiManagerRef.UpdateLives(_lives);
     if (_lives <= 0)
     {
         ProcessDeath();
     }
 }