少年修仙传客户端代码仓库
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
24
25
26
27
28
29
30
31
using UnityEngine;
 
namespace vnxbqy.UI
{
    public class FairySiegeRankInfoCell : CellView
    {
        [SerializeField] TextEx txtRound;
        [SerializeField] TextEx txtRank;
        [SerializeField] TextEx txtScore;
 
        FairySiegeActModel model { get { return ModelCenter.Instance.GetModel<FairySiegeActModel>(); } }
 
        public void Display(int round)
        {
            if (model.roundsData == null)
                return;
            txtRound.text = round.ToString();
            if (model.roundsData.ContainsKey(round))
            {
                var roundData = model.roundsData[round];
                txtRank.text = roundData.rank.ToString();
                txtScore.text = roundData.score.ToString();
            }
            else
            {
                txtRank.text = 0.ToString();
                txtScore.text = 0.ToString();
            }
        }
    }
}