Example #1
0
 // Returns true if text existed
 public static bool Continue()
 {
     // Set up static instances if we haven't yet
     if (gameObject == null)
     {
         Setup();
     }
     if (showingQuestion)
     {
         QuestionBox question = gameObject.GetComponent <QuestionBox>();
         if (question != null)
         {
             question.Select();
             NextTextbox();
             return(true);
         }
     }
     else
     {
         Textbox textbox = gameObject.GetComponent <Textbox>();
         if (textbox != null)
         {
             if (textbox.Blocking)
             {
                 // If this textbox is done, start the next one
                 if (textbox.Continue())
                 {
                     NextTextbox();
                 }
                 return(true);
             }
         }
     }
     return(false);
 }