hch
1 天以前 f88d20f956b355588cf987a6534c39e016b1d8e8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
using UnityEngine;
 
public class HeroReturnSkinAwardCell : CellView
{
    [SerializeField] ItemCell itemCell;
    public void Display(int index, int[][] arr)
    {
        if (arr == null || arr.Length <= index) return;
        int itemID = arr[index][0];
        long itemCount = arr[index][1];
        
        itemCell.Init(new ItemCellModel(itemID, false, itemCount));
        itemCell.button.AddListener(() =>
        {
            ItemTipUtility.Show(itemID);
        });
    }
}