Beispiel #1
0
 public void TransitionTo(AbstractState nextState, Action <FlowContext> withAction)
 {
     CurrentState = nextState;
     withAction?.Invoke(this);
 }
Beispiel #2
0
 public FlowContext(AbstractState currentState)
 {
     CurrentState = currentState;
 }