Example #1
0
 public FSMConditionTransition(FSMState targetState, Func <bool> transitionCondition) : base(targetState) => this.transitionCondition = transitionCondition;
Example #2
0
 public FSMTransition(FSMState targetState) => this.targetState = targetState;
Example #3
0
 public FSM(FSMState initState, params FSMState[] state)
 {
     currentState = initState;
     states.Add(initState);
     states.AddRange(state);
 }