StateMachine<TKey, TState>.

StateMachine(TKey, TState) Constructor

Summary

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

Syntax

public StateMachine(TKey defaultKey, TState defaultState)

Remarks

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

Parameters

Name Type Description
defaultKey TKey
defaultState TState

Return Value

Type Description
void