예제 #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();
        }
예제 #2
0
 private void Awake()
 {
     shopUI           = GetComponent <ShopUI>();
     inventoryManager = inventoryPanel.GetComponent <InventoryManager>();
     gold             = inventoryPanel.GetComponentInChildren <Gold>();
 }