void CollisionExitListener(Collision2D collision) { if (onCollisionExit.GetPersistentEventCount() > 0) { foreach (var tempObject in CreateContactObjects(collision)) { onCollisionExit.Invoke(tempObject); } } }
void CollisionExitListener(Collision2D collision) { if (onCollisionExit.GetPersistentEventCount() > 0) { foreach (var tempObject in CreateContactObjects(collision)) { onCollisionExit.Invoke(tempObject); } } }