Directly transition an entity's state machine to a target state. Fires onExit, onEnter hooks and publishes stateTransition event.
ECS instance (structural typing)
Entity to transition
State to transition to
true if transition succeeded, false if entity has no stateMachine or target state doesn't exist
Directly transition an entity's state machine to a target state. Fires onExit, onEnter hooks and publishes stateTransition event.