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> (); }
void Awake() { Itemmanager = FindObjectOfType <ShopManagerClass> (); }
// Use this for initialization void Awake() { serve = FindObjectOfType <ServeCustomer> (); shopMan = FindObjectOfType <ShopManagerClass> (); spawner = FindObjectOfType <AiSpawnManager> (); }