private void OnEnter(GameObject otherCollider) { IDamage damage = otherCollider.GetComponent <IDamage>(); if (damage != null && !damage.GetSafe().Contains(this)) { TakeDamage(damage.GetDamage()); } }
private void OnEnter(GameObject otherCollider) { IDamage damage = otherCollider.GetComponent <IDamage>(); if (damage != null && !damage.GetSafe().Contains(this)) { TakeDamage(damage.GetDamage()); } }