Beispiel #1
0
 public void TakeDamage(int dmg)
 {
     _currHealth -= dmg;
     if (_currHealth <= 0)
     {
         Die();
         if (uIController != null)
         {
             uIController.FadeGameOver();
         }
     }
     if (uIController != null)
     {
         uIController.ChangeSprite();
     }
 }