| | |
| | | m_FightTimeTxt.text = TimeUtility.SecondsToHMS(_data.FightTime);
|
| | | m_WinImg.gameObject.SetActive(_data.IsWin);
|
| | | var _rankKey = UIHelper.GetIntervalAward(model.integralRankAwardDict.Keys, _index + 1);
|
| | | var _Award = model.integralRankAwardDict[_rankKey][0];
|
| | | var _per = model.integralRankAwardPer[model.fairyLeagueGroupId - 1];
|
| | | var _count = (int)Mathf.Max(_Award.item.count * ((float)_per / 100), 1);
|
| | | m_IntegralAward.Init(_Award.item.id, _count, _Award.isBind);
|
| | | var _item = model.integralRankAwardDict[_rankKey][0];
|
| | | var _per = 100;
|
| | | if ((model.fairyLeagueGroupId - 1) >= 0
|
| | | && (model.fairyLeagueGroupId - 1) < model.integralRankAwardPer.Length)
|
| | | {
|
| | | _per = model.integralRankAwardPer[model.fairyLeagueGroupId - 1];
|
| | | }
|
| | | var _count = (int)Mathf.Max(_item.count * (_item.isPer == 1 ? ((float)_per / 100) : 1), 1);
|
| | | m_IntegralAward.Init(_item.id, _count, _item.bind);
|
| | | m_IntegralAward.itemCnt.text = StringUtility.Contact("X", _count);
|
| | | m_ContainChampion.gameObject.SetActive(model.fairyLeagueGroupId == 5 && _index == model.GetBattleFirstPlayer());
|
| | | m_ChampionAwardBtn.onClick.RemoveAllListeners();
|
| | |
| | | if (_dict != null)
|
| | | {
|
| | | _rankKey = UIHelper.GetIntervalAward(_dict.Keys, (int)PlayerDatas.Instance.worldLv);
|
| | | _Award = _dict[_rankKey][0];
|
| | | var _Award = _dict[_rankKey][0];
|
| | | m_ChampionAward.Init(_Award.item.id, Mathf.Min(1, _Award.item.count), _Award.isBind);
|
| | | m_ChampionAwardBtn.onClick.AddListener(() =>
|
| | | {
|