public void Destroy() { for (var i = 0; i < CollidingWith.Count; i++) { CollidingWith[i].CollidingWith.Remove(this); CollidingWith[i].Entity.OnCollisionExit(Entity); } CollidingWith.Clear(); CollisionManager.UnregisterCollider(this); }