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