Example #1
0
 private void ProcessHit(DamageDealer damageDealer)
 {
     health -= damageDealer.GetDamage();
     damageDealer.Hit();
     if (health <= 0)
     {
         Die();
     }
     healthDisplay.UpdateHealthText();
 }