IStateMachine.

TryResetState(IList) Method

Summary

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

Syntax

bool TryResetState(IList states)

Remarks

This method does not check if the `state` is already the Animancer.FSM.IStateMachine.CurrentState. To do so, use Animancer.FSM.IStateMachine.TrySetState(System.Collections.IList) instead.

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

Parameters

Name Type Description
states IList

Return Value

Type Description
bool