: (state: string, args: any) => void Enter a state, trigger onStateEnd for previous state and onStateEnter for the new State state.
(from: string, to: string, action: () => void): KEventController Register event that runs once when a specific state transition happens. Accepts arguments passed from enterState(name, ...args).
: (state: string, action: (args: any) => void) => KEventController Register event that runs once when enters a specific state. Accepts arguments passed from enterState(name, ...args).
: (state: string, action: () => void) => KEventController Register an event that runs once when leaves a specific state.
: (state: string, action: () => void) => KEventController Register an event that runs every frame when in a specific state.
: (state: string, action: () => void) => KEventController Register an event that runs every frame when in a specific state.