Search Results for

    Show / Hide Table of Contents

    Interface ITransition<TState>

    Transition that can be triggered by an event.

    Namespace: nickmaltbie.StateMachineUnity
    Assembly: cs.temp.dll.dll
    Syntax
    public interface ITransition<TState>
    Type Parameters
    Name Description
    TState

    Type of the state machine.

    Properties

    TargetState

    Target state upon event trigger.

    Declaration
    TState TargetState { get; }
    Property Value
    Type Description
    TState

    TriggerEvent

    Type of event to listen for.

    Declaration
    Type TriggerEvent { get; }
    Property Value
    Type Description
    Type

    Methods

    OnTransition(IStateMachine<TState>)

    Behaviour to invoke when this transition is triggered.

    Declaration
    void OnTransition(IStateMachine<TState> sm)
    Parameters
    Type Name Description
    IStateMachine<TState> sm

    State machine being transitioned.

    In This Article
    Back to top State Machine Unity Documentation