using LitJson;
|
using vnxbqy.UI;
|
using System;
|
using System.Collections.Generic;
|
using System.Linq;
|
using System.Reflection;
|
using UnityEngine;
|
|
public class HaveZhanLingItemShowCell : ILBehaviour
|
{
|
ItemCell itemCell;
|
protected override void Awake()
|
{
|
itemCell = proxy.GetWidgtEx<ItemCell>("ItemCell");
|
}
|
|
public void Display(int index)
|
{
|
List<ZhanLingGiftItemInfo> allGiftItemList = HaveZhanLingItemShowModel.Instance.allGiftItemList;
|
var model = new ItemCellModel(allGiftItemList[index].id, false, (ulong)allGiftItemList[index].count);
|
itemCell.Init(model);
|
itemCell.button.SetListener(() =>
|
{
|
ItemTipUtility.Show(allGiftItemList[index].id);
|
});
|
}
|
|
|
}
|
|