Summary
[Animancer Extension]
Attempts to enter the specified `state` and returns true if successful.
This method returns true immediately if the specified `state` is already the
Animancer.FSM.StateMachine`1.CurrentState
. To allow directly re-entering the same state, use
Animancer.FSM.StateExtensions.TryReEnterState``1(``0)
instead.
Syntax
public static bool TryEnterState<TState>(this TState state)
where TState : class, IOwnedState<TState>
Type Parameters
Parameters
Name |
Type |
Description |
state |
TState |
|
Return Value