示例#1
0
 public void Initialize()
 {
     OrdersPanelScript = GameObject.Find(goMonitor).transform.Find(goUIScreen).Find(goCompCanvas).Find(goApps).Find(goOrdersPanel).gameObject.GetComponent <OrderUI>();
     hudScript         = GameObject.Find("HudCanvas").GetComponent <HudMain>();
     note         = GameObject.Find("HudCanvas").transform.Find("Phone").gameObject.GetComponent <Notifications>();
     achiev       = GameObject.Find("NotificationCanvas").transform.Find("Acheivments").gameObject.GetComponent <AchievmentsUI>();
     UIController = GameObject.Find("UiController").GetComponent <UIController>();
     shopManager  = GameObject.Find("Shop").transform.Find("ItemManager").GetComponent <ShopManagerClass> ();
 }
示例#2
0
 void Awake()
 {
     Itemmanager = FindObjectOfType <ShopManagerClass> ();
 }
示例#3
0
 // Use this for initialization
 void Awake()
 {
     serve   = FindObjectOfType <ServeCustomer> ();
     shopMan = FindObjectOfType <ShopManagerClass> ();
     spawner = FindObjectOfType <AiSpawnManager> ();
 }