Пример #1
0
 void openscenepanel()
 {
     if (in_check == true)
     {
         if (select_script.select_bool == false && select_script.selected_bool == false)
         {
             //  Debug.Log("222");
             if (select_script.k < 0 || select_script.k == 0)
             {
                 if (Input.GetKeyUp(KeyCode.Z))
                 {
                     Debug.Log("開啟選擇框");
                     select_script.select_panel.SetActive(true);
                     talk.panel.SetActive(true);
                     UsageCase.ReadTextDataFromAsset(string_where);
                     select_script.select_bool = true;
                     select_script.index       = 0;
                     select_script.check_story();
                     select_script.vector_reset();
                     Debug.Log("開啟選擇框2");
                 }
             }
         }
     }
 }
Пример #2
0
 public void read()
 {
     //   if (time - time_i > 1.7f || time_i == 0)  //可以開始講話的時候
     //   {
     UC.ReadTextDataFromAsset(txt);
     time_i = time;      //抓取的時間
     //   }
 }