public virtual void TakeDamage(int damageValue) { if (isMortal) { healthbarClass.TakeDamage(damageValue); VisableHealth.transform.localScale = new Vector3(healthbarClass.GetCurrentHealthPercent(), 1, 1); if (healthbarClass.GetIsDead()) { if (!isDead) { Died(); } } } }