StateMachine<TKey, TState>.WithDefault.

StateMachine<TKey, TState>.

TryResetDefaultState() Method

Summary

Attempts to enter the Animancer.FSM.StateMachine`2.WithDefault.DefaultKey and returns true if successful.

Syntax

public TState TryResetDefaultState()

Remarks

This method does not check if the Animancer.FSM.StateMachine`2.WithDefault.DefaultKey is already the Animancer.FSM.StateMachine`2.CurrentKey. To do so, use Animancer.FSM.StateMachine`2.WithDefault.TrySetDefaultState instead.

Return Value

Type Description
TState