using System.Collections;
|
using System.Collections.Generic;
|
using UnityEngine;
|
namespace vnxbqy.UI
|
{
|
public class AuctionAttentionCell : CellView
|
{
|
[SerializeField] AuctionAttentionBehaviour[] m_Attentions;
|
|
AuctionHelpModel auctionHelpModel { get { return ModelCenter.Instance.GetModel<AuctionHelpModel>(); } }
|
|
public void Display(int type, int line)
|
{
|
var auctionItems = auctionHelpModel.GetAuctionItemList(type);
|
|
for (int i = 0; i < m_Attentions.Length; i++)
|
{
|
var index = line * m_Attentions.Length + i;
|
if (index < auctionItems.Count)
|
{
|
m_Attentions[i].SetActive(true);
|
m_Attentions[i].Display(auctionItems[index].ItemID);
|
}
|
else
|
{
|
m_Attentions[i].SetActive(false);
|
}
|
}
|
}
|
}
|
}
|
|