少年修仙传客户端代码仓库
lcy
2025-05-08 1314c3b3c14cd520bbb8569b5f98d68933a22cd3
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
using UnityEngine;
 
namespace vnxbqy.UI
{
    public class FairySiegeSummonDragonAwardCell : CellView
    {
        [SerializeField] ItemCell itemCell;
        FairySiegeActModel model { get { return ModelCenter.Instance.GetModel<FairySiegeActModel>(); } }
 
        public void Display(int index)
        {
            if (index < 0 || index >= model.summonRewardArr.Length)
                return;
            var itemId = model.summonRewardArr[index][0];
            var count = model.summonRewardArr[index][1];
            itemCell.Init(new ItemCellModel(itemId, false, (ulong)count));
            itemCell.button.SetListener(() => ItemTipUtility.Show(itemId));
        }
    }
}