Sets up a transition to run. It's called with a function that runs the transition (call it whenever the transition should happen) and the FSM.
Sets up a transition to run. It's called with a function that runs the transition (call it whenever the transition should happen) and the FSM.