void OnCollisionExit2D(Collision2D other) { if (currentState != null && !IsInTransition) { currentState.CollisionExit2D(other); } }