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