void Start() { inv = GameObject.Find("StoreInventory").GetComponent <ShopInventory> (); // Find ShopDesc and hide at startup. shopDesc = GameObject.Find("Shop Description"); if (shopDesc != null) { if (shopDesc.activeSelf) { hideShop(shopDesc); } } tooltip = inv.GetComponent <ShopTooltip> (); }
private void Start() { sInv = GameObject.Find("ShopObject").GetComponent <ShopInventory>(); persistentInventory = GameObject.Find("PersistentInventory").GetComponent <PersistentInventoryScript>(); shopTooltip = sInv.GetComponent <ShopTooltip>(); }