Пример #1
0
 public void RemoveCollider(ColliderCat collider)
 {
     if (!colliderListDict.ContainsKey(collider.colliderType))
     {
         return;
     }
     colliderList.Remove(collider);
     colliderListDict[collider.colliderType].Remove(collider);
 }
Пример #2
0
 public bool IsIntersect(ColliderCat otherCollider, float tolerence = float.Epsilon)
 {
     return(box.IsIntersect(otherCollider.box, tolerence));
 }
Пример #3
0
 public void AddCollider(ColliderCat collider)
 {
     colliderList.Add(collider);
     colliderListDict.GetOrAddDefault(collider.colliderType, () => new List <ColliderCat>()).Add(collider);
 }