示例#1
0
 // Update is called once per frame
 void Update()
 {
     if (blueprint != null)
     {
         question = new DialogConversation(blueprint.dialogs);
     }
     if (dm.currentEvent == this)
     {
         if (dm.readyToAsk)
         {
             if (select == null)
             {
                 ui     = Instantiate(SelectUI);
                 select = ui.GetComponent <SelectChoices>();
                 setBtn();
             }
         }
     }
 }
示例#2
0
 void work(int choice)
 {
     if (choice == 1)
     {
         nextEvent = c1;
     }
     else if (choice == 2)
     {
         nextEvent = c2;
     }
     else
     {
         nextEvent = c3;
     }
     dm.isBetweenConversation = false;
     dm.endDialog();
     removeAllListener();
     Destroy(ui);
     select = null;
 }