Hum, I don’t known if it’s a good design. But i use it when, for example, my character is in a particular state and in this state an action has to be done if it go to a specific state. But It does it only if it will go on this specific state.
But I can put the action in the beginning of the specific state with a previousState check, but I think it’s conceptually incorrect… Maybe I’m wrong or not…
Login
Register
By registering on this website you agree to our Privacy Policy.