hch
15 小时以前 bc6f633a2f3cfc01122d8fd4452f69313ddcb32b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
using System;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class HeroRebornCell : CellView
{
    [SerializeField] ItemCell itemCell;
    [SerializeField] Text itemName;
 
    public void Display(int index, string replaceItemName, List<Item> items)
    {
        int itemID = items[index].id;
        itemCell.Init(new ItemCellModel(itemID, false, items[index].countEx));
        itemCell.button.SetListener(() =>
        {
            ItemTipUtility.Show(itemID);
        });
        itemName.text = replaceItemName;
    }
}