public override bool IsCollide(CustomCollider otherCollider) { if (otherCollider.GetType() == typeof(CustomRectCollider)) { return(IsCollideWithCustomRectCollider((CustomRectCollider)otherCollider)); } return(false); }