Exemplo n.º 1
0
 public void CreateUI()
 {
     if (create == true)
     {
         GameObject.Destroy(talk_box.gameObject);
         ui_box = ((GameObject)Instantiate(ui)).GetComponent <uibox>();
         CreatePos(new Vector3(-39.67f, 74.27f, -1.71f));
         InitPos1 = new Vector3(-39.67f, 74.27f, -1.71f);
         CreatePop(new Vector3(-35.57f, 76.97f, 0.09f));
         InitPos2 = new Vector3(-35.57f, 76.97f, 0.09f);
         create   = false;
     }
 }
Exemplo n.º 2
0
 void Awake()
 {
     inst        = this;
     inst.result = (GameObject)Resources.Load("Prefabs/ui/result");
     pm          = PlayerManager.GetInst();
     //ui_box = ((GameObject)Instantiate(ui)).GetComponent<uibox>();
     if (CameraManager.GetInst().event_mode == false)
     {
         if (tutorial == true)
         {
             talk_box = ((GameObject)Instantiate(talk)).GetComponent <talkbox>();
         }
         else
         {
             ui_box = ((GameObject)Instantiate(ui)).GetComponent <uibox>();
         }
     }
 }