//Transition between action states. Called from the current action //state with the state to transtition to as the argument. void TransitionActionState(ActionState nextState) { myState.Exit(); myState = nextState; myState.Enter(); }