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);
|
});
|
}
|
}
|