コード例 #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
ファイル: Shop.cs プロジェクト: SKaralius/arena-combat-rpg
 private void Awake()
 {
     shopUI           = GetComponent <ShopUI>();
     inventoryManager = inventoryPanel.GetComponent <InventoryManager>();
     gold             = inventoryPanel.GetComponentInChildren <Gold>();
 }