Ejemplo n.º 1
0
 protected override void Update()
 {
     base.Update();
     GUIScreenResult.UpdateState updateState = (GUIScreenResult.UpdateState) this.seq;
     if (updateState != GUIScreenResult.UpdateState.Initialize)
     {
         if (updateState != GUIScreenResult.UpdateState.OpenResult)
         {
             if (updateState != GUIScreenResult.UpdateState.Wait)
             {
             }
         }
         else if (++this.timeCt >= 20)
         {
             RestrictionInput.EndLoad();
             this.OpenResultUI();
             this.timeCt = 0;
             this.seq    = 2;
         }
     }
     else
     {
         this.result      = ClassSingleton <QuestData> .Instance.RespDataWD_DungeonResult;
         this.multiResult = ClassSingleton <QuestData> .Instance.RespData_WorldMultiResultInfoLogic;
         if (this.result == null && this.multiResult == null)
         {
             ScreenController.ChangeHomeScreen(CMD_Tips.DISPLAY_PLACE.TitleToFarm);
             this.seq = 2;
         }
         else
         {
             this.seq = 1;
         }
     }
 }
Ejemplo n.º 2
0
    private void OnTouch()
    {
        bool flag = false;

        GameWebAPI.RespDataWD_DungeonResult respDataWD_DungeonResult = ClassSingleton <QuestData> .Instance.RespDataWD_DungeonResult;
        if (respDataWD_DungeonResult != null && "3" == respDataWD_DungeonResult.worldDungeonId)
        {
            flag = true;
        }
        else
        {
            GameWebAPI.RespData_WorldMultiResultInfoLogic respData_WorldMultiResultInfoLogic = ClassSingleton <QuestData> .Instance.RespData_WorldMultiResultInfoLogic;
            if (respData_WorldMultiResultInfoLogic != null && "3" == respData_WorldMultiResultInfoLogic.worldDungeonId)
            {
                flag = true;
            }
        }
        if (flag)
        {
            if (this.particle != null && !this.particle.isStopped)
            {
                this.particle.Stop();
            }
            Action finishedAction = delegate()
            {
                this.ClosePanel(true);
            };
            LeadReview.ShowReviewConfirm(LeadReview.MessageType.FIRST_CLEAR_AREA1_STAGE3, finishedAction, false);
        }
        else
        {
            this.ClosePanel(true);
        }
    }
    public override void Init()
    {
        base.Init();
        this.particleRemover.SetActive(false);
        this.getExp.text     = "0";
        this.getCluster.text = "0";
        this.getFriendPointForLeader.text = "0";
        this.getFriendPoint.text          = "0";
        NGUITools.SetActiveSelf(this.acquisitionGO, false);
        int num = int.Parse(DataMng.Instance().RespDataMN_DeckList.selectDeckNum) - 1;

        this.deckData = DataMng.Instance().RespDataMN_DeckList.deckList[num];
        GameWebAPI.RespData_WorldMultiStartInfo respData_WorldMultiStartInfo = DataMng.Instance().RespData_WorldMultiStartInfo;
        this.isMulti = (null != respData_WorldMultiStartInfo);
        if (!this.isMulti)
        {
            GameWebAPI.RespDataWD_DungeonResult respDataWD_DungeonResult = ClassSingleton <QuestData> .Instance.RespDataWD_DungeonResult;
            this.totalExp     = respDataWD_DungeonResult.totalExp;
            this.totalCluster = respDataWD_DungeonResult.totalMoney;
        }
        else
        {
            GameWebAPI.RespData_WorldMultiResultInfoLogic respData_WorldMultiResultInfoLogic = ClassSingleton <QuestData> .Instance.RespData_WorldMultiResultInfoLogic;
            this.totalExp     = respData_WorldMultiResultInfoLogic.totalExp;
            this.totalCluster = respData_WorldMultiResultInfoLogic.totalMoney;
            if (respData_WorldMultiResultInfoLogic.dungeonReward != null)
            {
                if (respData_WorldMultiResultInfoLogic.dungeonReward.luckDrop != null)
                {
                    foreach (GameWebAPI.RespData_WorldMultiResultInfoLogic.DungeonReward.LuckDrop luckDrop2 in respData_WorldMultiResultInfoLogic.dungeonReward.luckDrop)
                    {
                        if (int.Parse(luckDrop2.assetCategoryId) == 5)
                        {
                            this.totalExp += luckDrop2.assetNum;
                        }
                        if (int.Parse(luckDrop2.assetCategoryId) == 4)
                        {
                            this.totalCluster += luckDrop2.assetNum;
                        }
                    }
                }
                if (respData_WorldMultiResultInfoLogic.dungeonReward.multiReward != null)
                {
                    foreach (GameWebAPI.RespData_WorldMultiResultInfoLogic.DungeonReward.DropReward dropReward in respData_WorldMultiResultInfoLogic.dungeonReward.multiReward)
                    {
                        if (int.Parse(dropReward.assetCategoryId) == 5)
                        {
                            this.totalExp += dropReward.assetNum;
                        }
                        if (int.Parse(dropReward.assetCategoryId) == 4)
                        {
                            this.totalCluster += dropReward.assetNum;
                        }
                    }
                }
                if (respData_WorldMultiResultInfoLogic.dungeonReward.ownerDropReward != null)
                {
                    foreach (GameWebAPI.RespData_WorldMultiResultInfoLogic.DungeonReward.DropReward dropReward2 in respData_WorldMultiResultInfoLogic.dungeonReward.ownerDropReward)
                    {
                        if (int.Parse(dropReward2.assetCategoryId) == 5)
                        {
                            this.totalExp += dropReward2.assetNum;
                        }
                        if (int.Parse(dropReward2.assetCategoryId) == 4)
                        {
                            this.totalCluster += dropReward2.assetNum;
                        }
                    }
                }
            }
        }
        this.getExpText.text     = StringMaster.GetString("BattleUI-03");
        this.getClusterText.text = StringMaster.GetString("BattleUI-40");
        this.getFriendPointForLeaderText.text = StringMaster.GetString("BattleUI-48");
        this.getFriendPointText.text          = StringMaster.GetString("BattleUI-49");
        this.CreateDigimonThumbnail();
    }