示例#1
0
 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);
             }
         }
     }
 }