少年修仙传客户端代码仓库
hch
2025-03-03 28785d6ddf9c08e49527ede9405c7b6c93c6ed32
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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);
        });
    }
 
}