Esempio n. 1
0
    public override void ShowLoseUI()
    {
        base.ShowLoseUI();
        BattleLoseUI battleLoseUI = LinkNavigationManager.OpenBattleLoseUI();

        battleLoseUI.ShowBtnAgainBtn(false);
        battleLoseUI.ShowBtnDamageCal(false);
        battleLoseUI.ShowRecommendPower(false, 0);
        battleLoseUI.BtnExitAction = delegate
        {
            WildBossManager.Instance.ExitWildBoss();
        };
        battleLoseUI.BtnAgainAction    = null;
        battleLoseUI.BtnEquipQuaAction = delegate
        {
            SceneLoadedUISetting.CurrentType = "SHOW_EQUIPQUALITY";
            WildBossManager.Instance.ExitWildBoss();
        };
        battleLoseUI.BtnEquipLvAction = delegate
        {
            SceneLoadedUISetting.CurrentType = "SHOW_EQUIPLEVEL";
            WildBossManager.Instance.ExitWildBoss();
        };
        battleLoseUI.BtnGemLvAction = delegate
        {
            SceneLoadedUISetting.CurrentType = "SHOW_GEMLEVEL";
            WildBossManager.Instance.ExitWildBoss();
        };
        battleLoseUI.BtnSkillAction = delegate
        {
            SceneLoadedUISetting.CurrentType = "SHOW_SKILL";
            WildBossManager.Instance.ExitWildBoss();
        };
        battleLoseUI.BtnPetLvAction = delegate
        {
            SceneLoadedUISetting.CurrentType = "SHOW_PETLEVEL";
            WildBossManager.Instance.ExitWildBoss();
        };
        battleLoseUI.BtnPetStarAction = delegate
        {
            SceneLoadedUISetting.CurrentType = "SHOW_PETSTRA";
            WildBossManager.Instance.ExitWildBoss();
        };
        battleLoseUI.BtnPetSkillAction = delegate
        {
            SceneLoadedUISetting.CurrentType = "SHOW_PETSKILL";
            WildBossManager.Instance.ExitWildBoss();
        };
        battleLoseUI.BtnGodSoldierAction = delegate
        {
            SceneLoadedUISetting.CurrentType = "SHOW_GODSOLDIER";
            WildBossManager.Instance.ExitWildBoss();
        };
        battleLoseUI.BtnWingAction = delegate
        {
            SceneLoadedUISetting.CurrentType = "SHOW_WING";
            WildBossManager.Instance.ExitWildBoss();
        };
        battleLoseUI.OnCountDown(5, new Action(WildBossManager.Instance.ExitWildBoss));
    }
Esempio n. 2
0
 public override void ShowLoseUI()
 {
     base.ShowLoseUI();
     TimerHeap.AddTimer(1000u, 0, delegate
     {
         BattleLoseUI battleLoseUI = LinkNavigationManager.OpenBattleLoseUI();
         battleLoseUI.ShowBtnAgainBtn(false);
         battleLoseUI.ShowBtnDamageCal(true);
         battleLoseUI.ShowRecommendPower(false, 0);
         battleLoseUI.OnCountDown(5, delegate
         {
             MultiPlayerManager.Instance.SendPveExitBattleReq();
         });
         battleLoseUI.BtnExitAction = delegate
         {
             battleLoseUI.StopCountDown();
             MultiPlayerManager.Instance.SendPveExitBattleReq();
         };
         battleLoseUI.BtnAgainAction    = null;
         battleLoseUI.BtnEquipQuaAction = delegate
         {
             SceneLoadedUISetting.CurrentType = "SHOW_EQUIPQUALITY";
             MultiPlayerManager.Instance.SendPveExitBattleReq();
         };
         battleLoseUI.BtnEquipLvAction = delegate
         {
             SceneLoadedUISetting.CurrentType = "SHOW_EQUIPLEVEL";
             MultiPlayerManager.Instance.SendPveExitBattleReq();
         };
         battleLoseUI.BtnGemLvAction = delegate
         {
             SceneLoadedUISetting.CurrentType = "SHOW_GEMLEVEL";
             MultiPlayerManager.Instance.SendPveExitBattleReq();
         };
         battleLoseUI.BtnSkillAction = delegate
         {
             SceneLoadedUISetting.CurrentType = "SHOW_SKILL";
             MultiPlayerManager.Instance.SendPveExitBattleReq();
         };
         battleLoseUI.BtnPetLvAction = delegate
         {
             SceneLoadedUISetting.CurrentType = "SHOW_PETLEVEL";
             MultiPlayerManager.Instance.SendPveExitBattleReq();
         };
         battleLoseUI.BtnPetStarAction = delegate
         {
             SceneLoadedUISetting.CurrentType = "SHOW_PETSTRA";
             MultiPlayerManager.Instance.SendPveExitBattleReq();
         };
         battleLoseUI.BtnPetSkillAction = delegate
         {
             SceneLoadedUISetting.CurrentType = "SHOW_PETSKILL";
             MultiPlayerManager.Instance.SendPveExitBattleReq();
         };
         battleLoseUI.BtnGodSoldierAction = delegate
         {
             SceneLoadedUISetting.CurrentType = "SHOW_GODSOLDIER";
             MultiPlayerManager.Instance.SendPveExitBattleReq();
         };
         battleLoseUI.BtnWingAction = delegate
         {
             SceneLoadedUISetting.CurrentType = "SHOW_WING";
             MultiPlayerManager.Instance.SendPveExitBattleReq();
         };
     });
 }