少年修仙传客户端代码仓库
hch
2025-07-24 50e53441950268933694eeb5aad36147bbe1014d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
using UnityEngine;
 
namespace vnxbqy.UI
{
    public class FairySiegeScheduleNameListCell : CellView
    {
        [SerializeField] TextEx txtDamage;
        [SerializeField] TextEx txtName;
        FairySiegeActModel model { get { return ModelCenter.Instance.GetModel<FairySiegeActModel>(); } }
 
        public void Display(int playerID)
        {
            if (model.hurtMemDict == null)
                return;
            if (!model.hurtMemDict.TryGetValue((uint)model.queryFairyId, out var dict) || dict == null)
                return;
            if (!dict.TryGetValue((uint)playerID, out var info) || info == null)
                return;
            txtName.text = info.Name;
            txtDamage.text = UIHelper.ReplaceLargeNum(info.HurtValue);
        }
    }
}