public void RemoveCollider(ColliderCat collider) { if (!colliderListDict.ContainsKey(collider.colliderType)) { return; } colliderList.Remove(collider); colliderListDict[collider.colliderType].Remove(collider); }
public bool IsIntersect(ColliderCat otherCollider, float tolerence = float.Epsilon) { return(box.IsIntersect(otherCollider.box, tolerence)); }
public void AddCollider(ColliderCat collider) { colliderList.Add(collider); colliderListDict.GetOrAddDefault(collider.colliderType, () => new List <ColliderCat>()).Add(collider); }