Exemplo 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();
 }
Exemplo n.º 2
0
 public WorldBossKillInfoClass(WorldBossKillInfo msg)
 {
     if (msg.LastBossInfo != null)
     {
         lastBossInfo = new WorldBossClass(msg.LastBossInfo);
     }
     if (msg.LastKiller != null)
     {
         lastKiller = new WorldBossDamageRankInfoClass(msg.LastKiller);
     }
     if (msg.top3KillerList != null)
     {
         foreach (WorldBossDamageRankInfo data in msg.top3KillerList)
         {
             WorldBossDamageRankInfoClass info = new WorldBossDamageRankInfoClass(data);
             top3Killer.Add(info);
         }
     }
 }
Exemplo n.º 3
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();
 }