Example #1
0
 public void TakingDamage(object sender, EnemyAttack_Event e)
 {
     int realDamage = e.getEnemyDamage() - armor / 10;
     HelthPoint -= realDamage;
 }
Example #2
0
        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);
                }

            }
        }