//打开排名上升tips public void OpenNewRankTips() { NGUITools.SetLayer(NewRankTips, LayerMask.NameToLayer("TopUI")); // EffectMgr.Instance.CreateUIEffect(EffectId.UI_PetLight, NewBestRankTips.transform.position); ArenaVo arenaVo = Singleton <ArenaMode> .Instance.myArenaVo; curRank.text = arenaVo.rank.ToString(); upRank.text = (curMyRank - arenaVo.rank).ToString(); award.text = arenaVo.awardDiamBind.ToString(); Singleton <ArenaMode> .Instance.UpdateMyBestRank(Singleton <ArenaMode> .Instance.myArenaVo.rank); newRecord.SetActive(Singleton <ArenaMode> .Instance.IsGetNewBestRank? true: false); NewRankTips.SetActive(true); }
//竞技场信息更新回调 private void UpdateArenaMainView(object sender, int code) { if (code == Singleton <ArenaMode> .Instance.UPDATE_ARENA) { Log.info(this, "19-0返回的竞技场信息已更新,更新竞技场信息"); arenaViewInfo = Singleton <ArenaMode> .Instance.myArenaVo; if (curMyRank > 0) { rankUpFlag = curMyRank > arenaViewInfo.rank? true: false; if (rankUpFlag) { newRank = arenaViewInfo.rank; delteaTime = UP_RANK_TIME / (curMyRank - newRank); UpJianTou.SetActive(true); UpRank(); } else { curMyRank = arenaViewInfo.rank; myRank.text = curMyRank.ToString(); } } else { curMyRank = arenaViewInfo.rank; myRank.text = curMyRank.ToString(); } diamBindAward.text = arenaViewInfo.awardDiamBind.ToString(); challengeTimes.text = arenaViewInfo.challengeRemainTimes.ToString(); curRemainTime = arenaViewInfo.cd; preRemainTime = curRemainTime; this.ShowRemainTime(); timeCountFlag = true; } else if (code == Singleton <ArenaMode> .Instance.UPDATE_MY_RANK) { UpdateMyRank(); } }