StateMachine<TState>.

TryResetState(IList<TState>) Method

Summary

Attempts to enter any of the specified `states` and returns true if successful.
Assembly
Animancer.dll
Namespace
Animancer.FSM
Containing Type
StateMachine<TState>

Syntax

public bool TryResetState(IList<TState> states)

Remarks

This method does not check if the `state` is already the Animancer.FSM.StateMachine`1.CurrentState. To do so, use Animancer.FSM.StateMachine`1.TrySetState(System.Collections.Generic.IList{`0}) instead.

States are checked in ascending order (i.e. from [0] to [states.Count - 1]).

Parameters

Name Type Description
states IList<TState>

Return Value

Type Description
bool