private bool IsItemBought(Item item, StorageItemView[] boughtItems)
    {
        bool result = false;

        foreach (StorageItemView itemView in boughtItems)
        {
            if (itemView.Item == item)
            {
                result        = true;
                _requiredView = itemView;
                break;
            }
        }
        return(result);
    }
    private void AddItem(ShopItemView itemView)
    {
        _boughtItems = _itemContainer.GetComponentsInChildren <StorageItemView>();

        if (!IsItemBought(itemView.Item, _boughtItems))
        {
            _requiredView = null;
            StorageItemView view = Instantiate(_template, _itemContainer.transform);
            view.Render(itemView.Item);
        }
        else
        {
            _requiredView.IncreaseAvailableCount();
        }
    }