void OnTriggerEnter(Collider other) { if (currentState != null && !IsInTransition) { currentState.TriggerEnter(other); } }