StateMachine
StateMachine copied to clipboard
How can I implement timeout logic for state machine?
Some of the state will need a timeout to go to idle or something. How do you do that? Can somewhere give an example?
Why not try adding a timer onEnter in each step and when timer is fired check if still in current state and transition it to the new state or idle as your logic requires.