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