StateMachine<TKey, TState>.

StateMachine(IDictionary<TKey, TState>, TKey, TState) Constructor

Summary

Constructs a new Animancer.FSM.StateMachine`2 which uses the specified `dictionary` and immediately uses the `defaultKey` to enter the `defaultState`.
Assembly
Animancer.dll
Namespace
Animancer.FSM
Containing Type
StateMachine<TKey, TState>

Syntax

public StateMachine(IDictionary<TKey, TState> dictionary, TKey defaultKey, TState defaultState)

Remarks

This calls Animancer.FSM.IState.OnEnterState but not Animancer.FSM.IState.CanEnterState.

Parameters

Name Type Description
dictionary IDictionary<TKey, TState>
defaultKey TKey
defaultState TState

Return Value

Type Description
void