Esempio n. 1
0
 public void Choice(int index)
 {
     if (index < dialogues.GetChoices().Length)
     {
         try
         {
             dialogues.NextChoice(dialogues.GetChoices()[index]);
         } catch
         {
             Hide();
         }
     }
 }
Esempio n. 2
0
 public void Choice(int index)
 {
     if (index == 2 && npc.GetCurrentTree() == "TalkAgain")
     {
         index = 1;
     }
     if (npc.GetChoices().Length != 0)
     {
         npc.NextChoice(npc.GetChoices()[index]); //We make a choice out of the available choices based on the passed index.
         Display();                               //We actually call this function on the left and right button's onclick functions
     }
     else
     {
         Progress();
     }
 }
Esempio n. 3
0
 private void Choice(int index)
 {
     dialogue.NextChoice(dialogue.GetChoices()[index]);
     Display();
 }