少年修仙传客户端代码仓库
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
21
22
23
24
25
26
27
28
using UnityEngine;
 
namespace vnxbqy.UI
{
    public class FairySiegeScheduleScoreCell : CellView
    {
        [SerializeField] TextEx txtRound;
        [SerializeField] TextEx txtScore1;
        [SerializeField] TextEx txtScore2;
        [SerializeField] TextEx txtScore3;
 
        FairySiegeActModel model { get { return ModelCenter.Instance.GetModel<FairySiegeActModel>(); } }
 
        public void Display(int index)
        {
            var scoreRowData = model.GetScoreRowData();
            if (scoreRowData.IsNullOrEmpty())
                return;
            if (index < 0 || index >= scoreRowData.Count)
                return;
            var info = scoreRowData[index];
            txtRound.text = info.RankDisplay;
            txtScore1.text = info.PrimaryScore.ToString();
            txtScore2.text = info.IntermediateScore.ToString();
            txtScore3.text = info.AdvancedScore.ToString();
        }
    }
}