| | |
| | | [SerializeField] Button arenaBtn;
|
| | | [SerializeField] Button seasonAwardBtn;
|
| | | [SerializeField] Button honorStoreBtn;
|
| | |
|
| | | CrossServerModel crossServerModel { get { return ModelCenter.Instance.GetModel<CrossServerModel>(); } }
|
| | | #region Built-in
|
| | | protected override void BindController()
|
| | | {
|
| | |
| | | headImg.SetSprite(GeneralDefine.GetOtherJobHeadPortrait(playerData.Job, 0));
|
| | | nameText.text = playerData.PlayerName;
|
| | | lvText.text = StringUtility.Contact("Lv.",playerData.LV);
|
| | | scoreSlider.minValue = 0;
|
| | | scoreSlider.maxValue = 1;
|
| | | UpdateScore();
|
| | | }
|
| | |
|
| | | private void UpdateScore()
|
| | | {
|
| | | curScoreText.text = crossServerModel.curScore.ToString();
|
| | | int maxScore = crossServerModel.GetMaxUpgradeScore();
|
| | | scorePerText.text = StringUtility.Contact(crossServerModel.curScore, "/", maxScore);
|
| | | scoreSlider.value = (float)crossServerModel.curScore/maxScore;
|
| | | }
|
| | |
|
| | | #region 点击事件
|