Esempio n. 1
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>();
         }
     }
 }
Esempio n. 2
0
 public void CreateTalkBox()
 {
     talk_box = Instantiate(talk).GetComponent <talkbox>();
     talk_box.transform.position = (new Vector3(50, 50, 50));
     talkmode = true;
 }