Пример #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);
 }