C# (CSharp) SKU.StateMachine UnityState.OnEnter - 2 examples found. These are the top rated real world C# (CSharp) examples of SKU.StateMachine.UnityState.OnEnter extracted from open source projects. You can rate examples to help us improve the quality of examples.
public bool GoTo <T>() where T : UnityState, new()
{
if (CanGoTo <T>())
{
_currentState.OnExit();
_currentState = new T();
_currentState.OnEnter();
return(true);
}
return(false);
}