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); }