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