少年修仙传客户端代码仓库
hch
2025-04-03 c154ac0832fe4379a00d3e1cda700e7d2a7383c7
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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);
        });
    }
 
 
}