using vnxbqy.UI;
|
using UnityEngine;
|
|
// 聚魂战令
|
public class ZhanLingHBuyCell : CellView
|
{
|
[SerializeField] ItemCell itemCell;
|
VipModel vipModel { get { return ModelCenter.Instance.GetModel<VipModel>(); } }
|
ZhanLingHBuyModel model { get { return ModelCenter.Instance.GetModel<ZhanLingHBuyModel>(); } }
|
public void Display(int index)
|
{
|
var list = model.GetGiftAllItem();
|
int itemID = list[index].id;
|
int count = list[index].count;
|
itemCell.Init(new ItemCellModel(itemID, false, (ulong)count));
|
itemCell.button.SetListener(() =>
|
{
|
ItemTipUtility.Show(itemID);
|
});
|
}
|
|
}
|