示例#1
0
 public FSMState(string identifier, StateUpdateHandler updateHandler = null, StateEnteredCallback enteredCallback = null, StateExitedCallback exitedCallback = null)
 {
     this.Identifier = identifier;
     this.EnteredCallback = enteredCallback;
     this.ExitedCallback = exitedCallback;
     this.UpdateHandler = updateHandler;
 }
示例#2
0
 public FSMState(string identifier, StateUpdateHandler updateHandler = null, StateEnteredCallback enteredCallback = null, StateExitedCallback exitedCallback = null)
 {
     this.Identifier      = identifier;
     this.EnteredCallback = enteredCallback;
     this.ExitedCallback  = exitedCallback;
     this.UpdateHandler   = updateHandler;
 }
 public void AddState(string state, StateUpdateHandler updateHandler = null, StateEnteredCallback enteredCallback = null, StateExitedCallback exitedCallback = null)
 {
     _states[state] = new FSMState(state, updateHandler, enteredCallback, exitedCallback);
 }
示例#4
0
 public void AddState(string state, StateUpdateHandler updateHandler = null, StateEnteredCallback enteredCallback = null, StateExitedCallback exitedCallback = null)
 {
     _states[state] = new FSMState(state, updateHandler, enteredCallback, exitedCallback);
 }