Summary
[Animancer Extension]
Attempts to enter the specified `state` and returns true if successful.
This method does not check if the `state` is already the
Animancer.FSM.StateMachine`1.CurrentState
.
To do so, use Animancer.FSM.StateExtensions.TryEnterState``1(``0)
instead.
- Assembly
- Animancer
.dll - Namespace
- Animancer
.FSM - Containing Type
- StateExtensions
Syntax
public static bool TryReEnterState<TState>(this TState state)
where TState : class, IOwnedState<TState>
Type Parameters
Name | Description |
---|---|
TState |
Parameters
Name | Type | Description |
---|---|---|
state | TState |
Return Value
Type | Description |
---|---|
bool |