public void Awake(StateMachine owner, FSMState fsmState) { _owner = owner; _parent = fsmState; }
public void OnAfterDeserialize() { EntryState = GetState(entryState); }
public abstract bool DoTransition(FSMState from);
public void SetState(FSMState state) { CurrentState?.OnExit(); CurrentState = state; CurrentState?.OnEnter(); }