Exemplo n.º 1
0
 //In the  scene, when we make a choice let's find out what we chose
 void OnMadeChoice(int questionId, int choiceID)
 {
     if (choiceID == 0)
     {
         print("Choice 0");
         rpgTalk.NewTalk("EncounterTextStart_1a", "EncounterTextEnd_1a", rpgTalk.txtToParse, this, "GiveBackControls");
         encounterGenerator.AllNpcAcceptQuests();
     }
     else if (choiceID == 1)
     {
         print("Choice 1");
         rpgTalk.NewTalk("EncounterTextStart_1b", "EncounterTextEnd_1b", rpgTalk.txtToParse, this, "GiveBackControls");
     }
     else
     {
         print("Choice does not exist");
     }
 }