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