예제 #1
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();
     }
 }