Esempio n. 1
0
 void Update()
 {
     // start the printing of the text
     if (!TypeWriter.is_done && !TypeWriter.is_writing)
     {
         TypeWriter.typewriter_delay = question_cursor.text_delay;
         TypeWriter.StartTypewriter(question_cursor.text);
     }
     // add the buttons when the text has finished printing
     if (TypeWriter.is_done && !hasCreatedButtons)
     {
         for (int i = 0; i < question_cursor.anwser.Count; i++)
         {
             AddButton.MakeButton(question_cursor.anwser[i].text, this, i);
         }
         hasCreatedButtons = true;
     }
 }