public void OnColliderMove(CustomCollider targetCollider) { if (!targetCollider.CheckCollide) { return; } foreach (CustomCollider collider in colliders) { if (collider.enabled && collider.gameObject.activeInHierarchy && collider != targetCollider) { if (targetCollider.DoesBordersCollide(collider) && targetCollider.IsCollide(collider)) { targetCollider.OnCollide(collider); collider.OnCollide(targetCollider); } } } }