Summary
Attempts to enter the specified `state` and returns true if successful.
- Assembly
- Animancer
.dll - Namespace
- Animancer
.FSM - Containing Type
- StateMachine
<TKey, TState>
Syntax
public bool TryResetState(TKey key, TState state)
Remarks
This method does not check if the `state` is already the
Animancer.FSM.StateMachine`1.CurrentState
.
To do so, use Animancer.FSM.StateMachine`2.TrySetState(`0,`1)
instead.
Parameters
Return Value
Type | Description |
---|---|
bool |