wait()
ecs.defineState(name).wait(waitTime, nextState)
Description
Wait before transitioning state.
Parameters
Property | Type | Description |
---|---|---|
waitTime | number | the number of ms before this state transition to the next. |
nextState | string or State | the next state that this timeout will transition into. Can be either a string that’s the name of the next state or another State object. |