Methods
StateManagedClass:beforeStateChange(old: string, new: string)
(Override) Called before the state is changed through StateManager:setState.
Arguments:
| old: string | The current state, from before the change. |
| new: string | The state from after the change. |
Returns:
| 1: boolean? | If |
StateManagedClass:onStateChange(old: string, new: string, ...: any)
(Override) Called after the state is changed through StateManager:setState.
Arguments:
| old: string | The state from before the change. |
| new: string | The current state, from after the change. |
| ...: any | Arguments for the new state. |