public void TakingDamage(object sender, EnemyAttack_Event e) { int realDamage = e.getEnemyDamage() - armor / 10; HelthPoint -= realDamage; }
public void TakingDamage(object sender, EnemyAttack_Event e) { int realDamage = e.getEnemyDamage() - armor / 10; HelthPoint -= realDamage; if (HelthPoint <= 0) { EventArgs ex = new EventArgs(); if (RemoveMe != null) { RemoveMe(this, ex); } } }