Closed SkyValor closed 7 months ago
I haven't been able to reproduce this. Please take a look at the scenario I created and see if you can adjust it to be more like yours. See https://github.com/chickensoft-games/LogicBlocks/tree/reproduce/error-handling
Closing this based on our discord conversation :))
When an exception is thrown in an input handler, that state's
OnExit()
does not get called and the state ends up in a stasis. A transition might still occur and theOnEnter()
method from the next state is called.Also, attempting to re-enter the first state proves unsuccessful, as
OnEnter()
does not get called, and the StateMachine freezes.