public void Open(UpgradeList upgradeList)
        {
            if (!closed)
            {
                return;
            }

            ClearShopItems();
            ClearBasketItems();

            basket.SetName("Upgrade orders");

            foreach (var itemData in upgradeList.Items)
            {
                if (Upgrades.CanUpgradeTo(itemData.itemCode))
                {
                    Shop.CreateShopItem(items).
                    SetItem(Inventory.CreateItem(itemData.itemCode), itemData.price).
                    SetAction(() => MoveToBasket(itemData));
                }
            }

            Inventory.SetBagItemActions(ItemActionOnShopping);

            Show();
        }
 public static void OpenCloseUpgradeShop(UpgradeList upgradeList, string name)
 {
     if (IsUpgradeShopOpen)
     {
         manager.CloseUpgradeShop();
     }
     else
     {
         manager.OpenUpgradesShop(upgradeList, name);
     }
 }
        public void CloseUpgradeShop()
        {
            upgradesShop.Close();
            currentUpgradelist = null;

            Inventory.HideBag();

            upgradeShopOpen = false;

            PlayCloseSFX();
        }
        public void OpenUpgradesShop(UpgradeList upgradeList, string name)
        {
            currentUpgradelist = upgradeList;
            upgradesShop.SetName(name);
            upgradesShop.Open(upgradeList);

            Inventory.ShowBag();

            upgradeShopOpen = true;

            PlayOpenSFX();
        }