Example #1
0
        private void ToggleShop()
        {
            shopContainer = GameObject.Find("Shop");
            GameObject shopPanelGO = shopContainer.transform.Find("ShopPanel").gameObject;
            ShopUI     shopUI      = shopPanelGO.GetComponent <ShopUI>();

            shopUI.TogglePanel();
            shopUI.UpdateUI();
        }
Example #2
0
 private void Awake()
 {
     shopUI           = GetComponent <ShopUI>();
     inventoryManager = inventoryPanel.GetComponent <InventoryManager>();
     gold             = inventoryPanel.GetComponentInChildren <Gold>();
 }