public override void Process()
 {
     if (!choiceManager.IsBusy || madeChoice)
     {
         madeChoice = false;
         if (IsAnyoneReading())
         {
             if (canSkip)
             {
                 mainTextBox.DisplayImmediate();
             }
         }
         else if (inkOverlord.canContinue)
         {
             if (!ReadNextLine())
             {
                 Terminate();
             }
         }
         else if (inkOverlord.hasChoices)
         {
             HandleChoices();
         }
         else
         {
             Terminate();
         }
     }
     else if (canSkip)
     {
         choiceManager.DisplayImmediate();
     }
 }
Example #2
0
 public override void Process()
 {
     if (!choiceManager.IsBusy || madeChoice)
     {
         madeChoice = false;
         if (mainTextBox._isReading)
         {
             if (canSkip)
             {
                 InkOverlord.IO.Skipped();
                 mainTextBox.DisplayImmediate();
             }
         }
         else if (InkOverlord.IO.canContinue)
         {
             if (!ReadNextLine())
             {
                 Terminate();
             }
         }
         else if (InkOverlord.IO.hasChoices)
         {
             HideLineFinished();
             choiceManager.FeedChoices(InkOverlord.IO.GetChoices());
             choiceManager.DisplayChoices();
         }
         else
         {
             Terminate();
         }
     }
     else if (canSkip)
     {
         choiceManager.DisplayImmediate();
     }
 }