Esempio n. 1
0
 /// <summary>
 /// 刷新界面
 /// </summary>
 /// <param name="result"></param>
 private void BackToWorldBoss(bool result)
 {
     activeBoss      = Obj_MyselfPlayer.GetMe().activeBoss;
     lastKillInfo    = Obj_MyselfPlayer.GetMe().lastKillInfo;
     currentKillInfo = Obj_MyselfPlayer.GetMe().currentKillInfo;
     nextTime        = Obj_MyselfPlayer.GetMe().activeBossCD;
     battleCD        = Obj_MyselfPlayer.GetMe().resurgenceCD;
     FreshUI();
 }
Esempio n. 2
0
 void OnEnable()
 {
     if (mainController == null)
     {
         mainController = GameObject.Find("MainController").GetComponent <MainController>();
     }
     ErrorEventListener.SetHandler((int)xjgame.message.ErrorType.WB_BATTLE_BOSS_DEAD, WorldBossError);
     ErrorEventListener.SetHandler((int)xjgame.message.ErrorType.WB_BATTLE_BOSS_HIDE, WorldBossError);
     GameObject.FindWithTag("main_controller").SendMessage("showBottomBar");
     Obj_MyselfPlayer.GetMe().battleType = BattleType.WORLD_BOSS;
     mainController.ShowActivityTopUI(ActivityType.E_ACTIVITY_TYPE_WORLD_BOSS);
     activeBoss      = Obj_MyselfPlayer.GetMe().activeBoss;
     lastKillInfo    = Obj_MyselfPlayer.GetMe().lastKillInfo;
     currentKillInfo = Obj_MyselfPlayer.GetMe().currentKillInfo;
     nextTime        = Obj_MyselfPlayer.GetMe().activeBossCD;
     battleCD        = Obj_MyselfPlayer.GetMe().resurgenceCD;
     FreshResurgenceInfo();
     FreshUI();
 }