Strata - v1.4.10
    Preparing search index...

    Interface YukaStateMachineRef

    Ref interface for YukaStateMachine imperative control.

    interface YukaStateMachineRef {
        changeTo: (stateName: string) => void;
        getCurrentState: () => string | null;
        revert: () => void;
        stateMachine: StateMachine<GameEntity>;
    }
    Index

    Properties

    changeTo: (stateName: string) => void

    Transition to a named state.

    getCurrentState: () => string | null

    Get current state name.

    revert: () => void

    Return to the previous state.

    stateMachine: StateMachine<GameEntity>

    The underlying Yuka StateMachine.