//账号升级 private IEnumerator DoAccountLevelUpCoroutine(float time) { yield return(new WaitForSeconds(time)); exp_profession_bar.ChangeValue(0); _curAccountLevel++; UpdateAccountBar(); LevelUpTipsView.Open(); if (OnProfessionLevelUpDelegate != null) { OnProfessionLevelUpDelegate(_curAccountLevel); } }
// private void UpdatePvpAction() // { // if (_pvpAction < _pvpActionMax) // { // if (_pvpActionNextRecoverTime > 0) // { // _pvpActionNextRecoverTime = Mathf.Max(_pvpActionNextRecoverTimePoint - Common.GameTime.Controller.TimeController.instance.ServerTimeTicksSecond*1000, 0); // // if(onPvpActionNextRecoverTimeUpdateDelegate != null) // { // onPvpActionNextRecoverTimeUpdateDelegate(); // } // if (_pvpActionNextRecoverTime <= 0) // { // RequestPvpInfo(); // } // } // } // } public void UpdateAccountLevelAndExp(int accountLevel, int accountExp) { int oldLevel = this._accountLevel; this._accountLevel = accountLevel; this._accountExp = accountExp; UpdateAccountInfo(); Logic.UI.SoftGuide.Model.SoftGuideProxy.instance.Init(); Logic.UI.SoftGuide.Model.SoftGuideProxy.instance.UpdateSoftGuide(); if (oldLevel != 0 && oldLevel < accountLevel && UIMgr.instance.Get(MainView.PREFAB_PATH) != null) { LevelUpTipsView.Open(); } }