少年修仙传客户端代码仓库
hch
2025-06-12 204ef05a831c9484e2abc561d27ecbff7c797453
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
using vnxbqy.UI;
using UnityEngine;
using System.Collections.Generic;
 
public class ZhanLingHActBuyAllCell : CellView
{
    [SerializeField] ItemCell itemCell;
    ZhanLingHActBuyModel model { get { return ModelCenter.Instance.GetModel<ZhanLingHActBuyModel>(); } }
    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);
        });
    }
 
}