少年修仙传客户端代码仓库
client_linchunjie
2018-08-21 bed0bf5657dca602614cfc1b0f3f19e4b8aa9984
System/FairyAu/FairyLeagueRankCell.cs
@@ -56,10 +56,15 @@
            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();
@@ -70,7 +75,7 @@
                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(() =>
                    {