public void Damage(int d) { bool b = IsAlive; Health -= d; if(OnDamage != null) OnDamage(this, d); if(b != IsAlive && !IsAlive) Destroy(); }