using System;
using System.Collections;
using System.Collections.Generic;
using TMPro;
using Unity.Collections.LowLevel.Unsafe;
using UnityEngine;
using UnityEngine.UI;
using UnityEngine.U2D;
///
/// List version of the view item container. Does not feature an info panel
///
public class ViewItemContainerList : ViewItemContainer
{
public override bool IsSelected {
get => highLight.gameObject.activeSelf;
set => highLight.SetActive(value);
}
private ViewItemInfoPanel itemInfo;
protected override void OnInitialize(Item item, ShopModel owner)
{
// We just use the automatic component based item info panel stuff per-item here!
itemInfo = GetComponent();
itemInfo?.SetItemInfo(item,owner);
}
public override void OnTransaction(int balance)
{
itemInfo.Refresh();
}
}