public void DamageProcess(CollisionComponent col) { if (isHittable == true && col.isBeHittable == true) { if (IsImmune() == true) { return; } if (Unit.IsChildTypeOf(targetType, col.owner.unitType)) { col.BeHit(this); } } }