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