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();
        }
        private void ExecuteUpgrades()
        {
            var items = basket.Itemlist;

            foreach (var item in items)
            {
                Upgrades.UpgradeItem(item.itemCode);
            }
        }
        private void Awake()
        {
            currentUpgrades = new Dictionary <UpgradeType, ItemCode>()
            {
                [UpgradeType.BED]       = ItemCode.BED1,
                [UpgradeType.DESK]      = ItemCode.DESK1,
                [UpgradeType.STOVE]     = ItemCode.STOVE1,
                [UpgradeType.SHOWER]    = ItemCode.SHOWER1,
                [UpgradeType.TOILET]    = ItemCode.TOILET1,
                [UpgradeType.COOKTABLE] = ItemCode.COOKINGTABLE1,
            };

            Upgrades.SetManager(this);
        }