Exemplo n.º 1
0
 public void Block()
 {
     if (_isDead)
     {
         return;
     }
     _shield--;
     shieldDisplay.Use();
 }
Exemplo n.º 2
0
 public void Hit()
 {
     if (_isDead)
     {
         return;
     }
     _health--;
     healthDisplay.Use();
     if (_health == 0)
     {
         Die();
     }
 }