/// <summary> /// Attempt to transition to the next prompt. This must be called during the prompt, and there must not be a next prompt yet. /// Caller still needs to finish processing the current prompt to continue to the next prompt. /// </summary> /// <param name="nextPrompt"></param> /// <param name="setThisAsReturn"></param> /// <returns>True if this will call the next prompt, else false.</returns> public bool TransitionTo(HeldPrompt nextPrompt) { if (InPrompt && Lock.IsWriteLockHeld && NextPrompt == null) { NextPrompt = nextPrompt; return(true); } else { return(false); } }
public override void OnTransition() { NextPrompt = null; base.OnTransition(); }