Exemple #1
0
 protected virtual void OnDamage(int damage)
 {
     if (armor != null)
     {
         damage = armor.BlockDamage(damage);
     }
     hp -= damage;
 }