using System.Collections;
|
using System.Collections.Generic;
|
using vnxbqy.UI;
|
using UnityEngine;
|
using UnityEngine.UI;
|
namespace EnhancedUI.EnhancedScroller
|
{
|
public class IntegralRankCell : ScrollerUI
|
{
|
[SerializeField] Text m_RankTxt;
|
[SerializeField] Text m_NameTxt;
|
[SerializeField] Text m_IntegralTxt;
|
|
FairyLeagueModel m_Model;
|
FairyLeagueModel model
|
{
|
get
|
{
|
return m_Model??(m_Model = ModelCenter.Instance.GetModel<FairyLeagueModel>());
|
}
|
}
|
public override void Refresh(CellView cell)
|
{
|
var _result = model.fairyLeagueResults[cell.index];
|
m_RankTxt.text = (cell.index + 1).ToString();
|
m_NameTxt.text = _result.PlayerName;
|
m_IntegralTxt.text = _result.Integral.ToString();
|
}
|
}
|
}
|