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