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