State change while in State_Exit() calls the same State_Exit()
Closed this issue · 1 comments
tosiabunio commented
Should this work that way? We are still exiting the state, but when destination changes it should only affect which State_Enter() is called if we change state during exit and State_Exit() is finished.
prime31 commented
changing states while in an exit state is a bit odd. The code definitely does not expect that to happen. State changes are expected to be happening in the tick method. Whatever state is currently active will always have exit called when a state changes regardless of when it changes.