Ejemplo n.º 1
0
    private void RefreshLeftAndRightButton(int chapter, DungeonType.ENUM dungeontype)
    {
        int num         = (int)float.Parse(DataReader <GlobalParams> .Get("chapter_show").value);
        int dungeonType = (int)dungeontype;

        if ((DataReader <ZhuXianZhangJiePeiZhi> .DataList.Find((ZhuXianZhangJiePeiZhi data) => data.chapterOrder == chapter + 1 && data.chapterType == dungeonType) == null || chapter >= num) && chapter != DungeonManager.Instance.chapterStart)
        {
            this.BtnNextChapter.set_enabled(false);
            this.BtnLastChapter.set_enabled(true);
            ImageColorMgr.SetImageColor(this.BtnNextChapter.get_transform().FindChild("Image").GetComponent <Image>(), true);
            ImageColorMgr.SetImageColor(this.BtnLastChapter.get_transform().FindChild("Image").GetComponent <Image>(), false);
        }
        else if (chapter == DungeonManager.Instance.chapterStart && DataReader <ZhuXianZhangJiePeiZhi> .DataList.Find((ZhuXianZhangJiePeiZhi data) => data.chapterOrder == chapter + 1 && data.chapterType == dungeonType) != null)
        {
            this.BtnNextChapter.set_enabled(true);
            this.BtnLastChapter.set_enabled(false);
            ImageColorMgr.SetImageColor(this.BtnNextChapter.get_transform().FindChild("Image").GetComponent <Image>(), false);
            ImageColorMgr.SetImageColor(this.BtnLastChapter.get_transform().FindChild("Image").GetComponent <Image>(), true);
        }
        else if (chapter == DungeonManager.Instance.chapterStart && DataReader <ZhuXianZhangJiePeiZhi> .DataList.Find((ZhuXianZhangJiePeiZhi data) => data.chapterOrder == chapter + 1 && data.chapterType == dungeonType) == null)
        {
            this.BtnNextChapter.set_enabled(false);
            this.BtnLastChapter.set_enabled(false);
            ImageColorMgr.SetImageColor(this.BtnNextChapter.get_transform().FindChild("Image").GetComponent <Image>(), true);
            ImageColorMgr.SetImageColor(this.BtnLastChapter.get_transform().FindChild("Image").GetComponent <Image>(), true);
        }
        else
        {
            this.BtnNextChapter.set_enabled(true);
            this.BtnLastChapter.set_enabled(true);
            ImageColorMgr.SetImageColor(this.BtnNextChapter.get_transform().FindChild("Image").GetComponent <Image>(), false);
            ImageColorMgr.SetImageColor(this.BtnLastChapter.get_transform().FindChild("Image").GetComponent <Image>(), false);
        }
    }
Ejemplo n.º 2
0
 public void StartDarkTrial(int instanceID)
 {
     this.curInstanceID = instanceID;
     if (EntityWorld.Instance.EntSelf == null)
     {
         return;
     }
     if (TeamBasicManager.Instance.MyTeamData == null)
     {
         DialogBoxUIViewModel.Instance.ShowAsOKCancel(GameDataUtils.GetChineseContent(1005022, false), GameDataUtils.GetChineseContent(50724, false), delegate
         {
         }, delegate
         {
             DarkTrialManager arg_1D_0 = this;
             DungeonType.ENUM arg_1D_1 = DungeonType.ENUM.MultiPve;
             List <int> list           = new List <int>();
             list.Add(instanceID);
             arg_1D_0.OnMakeTeam(arg_1D_1, list, 111);
         }, GameDataUtils.GetChineseContent(50725, false), GameDataUtils.GetChineseContent(50726, false), "button_orange_1", "button_yellow_1", null, true, true);
     }
     else if (TeamBasicManager.Instance.MyTeamData.LeaderID == EntityWorld.Instance.EntSelf.ID)
     {
         this.StartDarkTrial();
     }
     else
     {
         UIManagerControl.Instance.ShowToastText(GameDataUtils.GetChineseContent(516124, false));
     }
 }
Ejemplo n.º 3
0
    private void ResetImageIslands(int chapter, DungeonType.ENUM dungeonType)
    {
        int  num  = 0;
        bool flag = false;

        for (int i = 0; i < this.listData.get_Count(); i++)
        {
            ChapterInfo chapterInfo = this.listData.get_Item(i);
            for (int j = 0; j < chapterInfo.dungeons.get_Count(); j++)
            {
                DungeonInfo dungeonInfo = chapterInfo.dungeons.get_Item(j);
                if (!dungeonInfo.clearance)
                {
                    num  = i;
                    flag = true;
                    break;
                }
            }
            if (flag)
            {
                break;
            }
        }
        for (int k = 0; k < this.listIsland.get_Count(); k++)
        {
            Object.Destroy(this.listIsland.get_Item(k));
        }
        this.listIsland.Clear();
        for (int l = 0; l <= num; l++)
        {
            ChapterInfo           chapterInfo2          = this.listData.get_Item(l);
            ZhuXianZhangJiePeiZhi zhuXianZhangJiePeiZhi = DataReader <ZhuXianZhangJiePeiZhi> .Get(chapterInfo2.chapterId);

            if (zhuXianZhangJiePeiZhi.mainSenceIcon != 0)
            {
                GameObject gameObject = new GameObject(chapterInfo2.chapterId.ToString());
                gameObject.get_transform().set_parent(this.Islands);
                this.listIsland.Add(gameObject);
                Image image = gameObject.AddComponent <Image>();
                ResourceManager.SetSprite(image, ResourceManager.GetIconSprite(DataReader <Icon> .Get(zhuXianZhangJiePeiZhi.mainSenceIcon).icon));
                RectTransform component = gameObject.GetComponent <RectTransform>();
                component.set_localPosition(new Vector2((float)zhuXianZhangJiePeiZhi.mainSenceIconPoint.get_Item(0), (float)zhuXianZhangJiePeiZhi.mainSenceIconPoint.get_Item(1)));
                component.set_localScale(Vector3.get_one());
                image.SetNativeSize();
                ButtonCustom buttonCustom = gameObject.AddComponent <ButtonCustom>();
                buttonCustom.onClickCustom = new ButtonCustom.VoidDelegateObj(this.OnClickIslandItem);
            }
        }
    }
Ejemplo n.º 4
0
 private void RefreshUI(int chapter, DungeonType.ENUM dungeonType)
 {
     InstanceSelectUI.currentShowChapter = chapter;
     BoxRewardManager.Instance.GetChapterAward(InstanceSelectUI.currentShowChapter, (int)dungeonType, delegate
     {
         this.ResetChapterData();
         this.RefreshDungeonTypeData(dungeonType);
         this.RefreshStateBtnsAndSetCurrentDungeonType(dungeonType);
         this.RefreshInstanceItems(chapter, dungeonType);
         this.RefreshBoxReward(chapter, dungeonType);
         this.ResetChapterRewardBadge(chapter, dungeonType);
         this.RefreshLeftAndRightButton(chapter, dungeonType);
         this.ResetImageIslands(chapter, dungeonType);
     });
 }
Ejemplo n.º 5
0
    public void SendGetDungeonDataReq(int chapterId, DungeonType.ENUM type, Action actionGetDungeonDataCallback)
    {
        if (this.isRequestingChapters)
        {
            return;
        }
        this.m_actionGetDungeonDataCallback = actionGetDungeonDataCallback;
        this.isRequestingChapters           = true;
        ChapterResume chapterResume = new ChapterResume();

        chapterResume.chapterId   = chapterId;
        chapterResume.dungeonType = type;
        NetworkManager.Send(new GetDungeonDataReq
        {
            chaterInfo = chapterResume
        }, ServerType.Data);
    }
Ejemplo n.º 6
0
    public void SetDungeonType(DungeonType.ENUM type = DungeonType.ENUM.Other)
    {
        List <int>  dungeonParams = (TeamBasicManager.Instance.MyTeamData == null) ? new List <int>() : TeamBasicManager.Instance.MyTeamData.ChallengeIDParams;
        DuiWuMuBiao teamTargetCfg = TeamBasicManager.Instance.GetTeamTargetCfg(type, dungeonParams);

        if (teamTargetCfg == null || teamTargetCfg.Button != 1 || !TeamBasicManager.Instance.IsTeamLeader())
        {
            if (this.goToDungeonBtn.get_gameObject().get_activeSelf())
            {
                this.goToDungeonBtn.get_gameObject().SetActive(false);
            }
        }
        else if (!this.goToDungeonBtn.get_gameObject().get_activeSelf())
        {
            this.goToDungeonBtn.get_gameObject().SetActive(true);
        }
    }
Ejemplo n.º 7
0
 public void SetPross(DungeonType.ENUM dungeonType)
 {
     if (dungeonType == DungeonType.ENUM.Normal)
     {
         for (int i = 0; i < this.normalData.get_Count(); i++)
         {
             DungeonInfo dungeonInfo = Enumerable.FirstOrDefault <DungeonInfo>(this.normalData.get_Item(i).dungeons, (DungeonInfo k) => !k.clearance);
             if (dungeonInfo != null)
             {
                 this.normalOpen = dungeonInfo.dungeonId;
                 return;
             }
         }
     }
     else if (dungeonType == DungeonType.ENUM.Elite)
     {
         for (int j = 0; j < this.eliteData.get_Count(); j++)
         {
             DungeonInfo dungeonInfo2 = Enumerable.FirstOrDefault <DungeonInfo>(this.eliteData.get_Item(j).dungeons, (DungeonInfo k) => !k.clearance);
             if (dungeonInfo2 != null)
             {
                 this.eliteOpen = dungeonInfo2.dungeonId;
                 return;
             }
         }
     }
     else if (dungeonType == DungeonType.ENUM.Team)
     {
         for (int l = 0; l < this.teamData.get_Count(); l++)
         {
             DungeonInfo dungeonInfo3 = Enumerable.FirstOrDefault <DungeonInfo>(this.teamData.get_Item(l).dungeons, (DungeonInfo k) => !k.clearance);
             if (dungeonInfo3 != null)
             {
                 this.teamOpen = dungeonInfo3.dungeonId;
                 return;
             }
         }
     }
 }
Ejemplo n.º 8
0
    private void OnGetDungeonChangeData(short state, DungeonChangedNty down = null)
    {
        if (state != 0)
        {
            StateManager.Instance.StateShow(state, 0);
            return;
        }
        if (down != null)
        {
            DungeonType.ENUM dungeonType = down.dungeonType;
            switch (dungeonType)
            {
            case DungeonType.ENUM.Normal:
                this.UpdateData(down, this.normalData);
                this.SetPross(DungeonType.ENUM.Normal);
                EventDispatcher.Broadcast(DungeonManagerEvent.InstanceDataHaveChange);
                break;

            case DungeonType.ENUM.Elite:
                this.UpdateData(down, this.eliteData);
                this.SetPross(DungeonType.ENUM.Elite);
                EventDispatcher.Broadcast(DungeonManagerEvent.InstanceDataHaveChange);
                break;

            case DungeonType.ENUM.Team:
                break;

            case DungeonType.ENUM.Arena:
                break;

            default:
                if (dungeonType != DungeonType.ENUM.Society)
                {
                }
                break;
            }
        }
    }
Ejemplo n.º 9
0
 public static void OpenSeekTeamUI(DungeonType.ENUM type, int param = 0)
 {
     TeamBasicManager.Instance.OpenSeekTeamUI(type, param, null);
 }
Ejemplo n.º 10
0
 public void OnMakeTeam(DungeonType.ENUM dungeonType, List <int> dungeonParams = null, int systemID = 0)
 {
     TeamBasicManager.Instance.OnMakeTeamByDungeonType(dungeonType, dungeonParams, systemID);
 }
Ejemplo n.º 11
0
    private void RefreshStateBtnsAndSetCurrentDungeonType(DungeonType.ENUM dungeonType)
    {
        switch (InstanceSelectUI.currentDungeonType)
        {
        case DungeonType.ENUM.Normal:
            this.BtnNormal.get_transform().FindChild("Image1").get_gameObject().SetActive(true);
            this.BtnNormal.get_transform().FindChild("Image2").get_gameObject().SetActive(false);
            this.BtnNormal.get_transform().FindChild("Text1").get_gameObject().SetActive(true);
            this.BtnNormal.get_transform().FindChild("Text2").get_gameObject().SetActive(false);
            this.ImageBG_Normal_1.get_gameObject().SetActive(false);
            this.ImageBG_Normal_2.get_gameObject().SetActive(false);
            break;

        case DungeonType.ENUM.Elite:
            this.BtnElite.get_transform().FindChild("Image1").get_gameObject().SetActive(true);
            this.BtnElite.get_transform().FindChild("Image2").get_gameObject().SetActive(false);
            this.BtnElite.get_transform().FindChild("Text1").get_gameObject().SetActive(true);
            this.BtnElite.get_transform().FindChild("Text2").get_gameObject().SetActive(false);
            this.ImageBG_Elite_1.get_gameObject().SetActive(false);
            this.ImageBG_Elite_2.get_gameObject().SetActive(false);
            break;

        case DungeonType.ENUM.Team:
            this.BtnMulti.get_transform().FindChild("Image1").get_gameObject().SetActive(true);
            this.BtnMulti.get_transform().FindChild("Image2").get_gameObject().SetActive(false);
            this.BtnMulti.get_transform().FindChild("Text1").get_gameObject().SetActive(true);
            this.BtnMulti.get_transform().FindChild("Text2").get_gameObject().SetActive(false);
            this.ImageBG_Multi_1.get_gameObject().SetActive(false);
            this.ImageBG_Multi_2.get_gameObject().SetActive(false);
            break;
        }
        InstanceSelectUI.currentDungeonType = dungeonType;
        switch (InstanceSelectUI.currentDungeonType)
        {
        case DungeonType.ENUM.Normal:
            this.BtnNormal.get_transform().FindChild("Image1").get_gameObject().SetActive(false);
            this.BtnNormal.get_transform().FindChild("Image2").get_gameObject().SetActive(true);
            this.BtnNormal.get_transform().FindChild("Text1").get_gameObject().SetActive(false);
            this.BtnNormal.get_transform().FindChild("Text2").get_gameObject().SetActive(true);
            this.ImageBG_Normal_1.get_gameObject().SetActive(true);
            this.ImageBG_Normal_2.get_gameObject().SetActive(true);
            break;

        case DungeonType.ENUM.Elite:
            this.BtnElite.get_transform().FindChild("Image1").get_gameObject().SetActive(false);
            this.BtnElite.get_transform().FindChild("Image2").get_gameObject().SetActive(true);
            this.BtnElite.get_transform().FindChild("Text1").get_gameObject().SetActive(false);
            this.BtnElite.get_transform().FindChild("Text2").get_gameObject().SetActive(true);
            this.ImageBG_Elite_1.get_gameObject().SetActive(true);
            this.ImageBG_Elite_2.get_gameObject().SetActive(true);
            break;

        case DungeonType.ENUM.Team:
            this.BtnMulti.get_transform().FindChild("Image1").get_gameObject().SetActive(false);
            this.BtnMulti.get_transform().FindChild("Image2").get_gameObject().SetActive(true);
            this.BtnMulti.get_transform().FindChild("Text1").get_gameObject().SetActive(false);
            this.BtnMulti.get_transform().FindChild("Text2").get_gameObject().SetActive(true);
            this.ImageBG_Multi_1.get_gameObject().SetActive(true);
            this.ImageBG_Multi_2.get_gameObject().SetActive(true);
            break;
        }
    }
Ejemplo n.º 12
0
    private void RefreshInstanceItems(int chapter, DungeonType.ENUM dungeonType)
    {
        this.ResetItems();
        ChapterInfo        chapterInfo = this.listData.get_Item(chapter - 1);
        List <DungeonInfo> list        = new List <DungeonInfo>();

        list.AddRange(chapterInfo.dungeons);
        for (int i = 0; i < list.get_Count(); i++)
        {
            int num = i;
            for (int j = i + 1; j < list.get_Count(); j++)
            {
                DungeonInfo   dungeonInfo   = list.get_Item(num);
                ZhuXianPeiZhi zhuXianPeiZhi = DataReader <ZhuXianPeiZhi> .Get(dungeonInfo.dungeonId);

                if (zhuXianPeiZhi == null)
                {
                    Debug.LogError("GameData.InstanceConfigure no key = " + dungeonInfo.dungeonId);
                }
                else
                {
                    DungeonInfo   dungeonInfo2   = list.get_Item(j);
                    ZhuXianPeiZhi zhuXianPeiZhi2 = DataReader <ZhuXianPeiZhi> .Get(dungeonInfo2.dungeonId);

                    if (zhuXianPeiZhi2 == null)
                    {
                        Debug.LogError("GameData.InstanceConfigure no key = " + dungeonInfo2.dungeonId);
                    }
                    else if (zhuXianPeiZhi.instance > zhuXianPeiZhi2.instance)
                    {
                        num = j;
                    }
                }
            }
            if (num != i)
            {
                XUtility.ListExchange <DungeonInfo>(list, i, num);
            }
        }
        for (int k = 0; k < list.get_Count(); k++)
        {
            DungeonInfo di = list.get_Item(k);
            if (k == 0)
            {
                FuBenJiChuPeiZhi icTmp = DataReader <FuBenJiChuPeiZhi> .Get(di.dungeonId);

                ZhuXianZhangJiePeiZhi zhuXianZhangJiePeiZhi = DataReader <ZhuXianZhangJiePeiZhi> .DataList.Find((ZhuXianZhangJiePeiZhi a) => a.chapterType == icTmp.type && a.chapterOrder == DataReader <ZhuXianZhangJiePeiZhi> .Get(DataReader <ZhuXianPeiZhi> .Get(di.dungeonId).chapterId).chapterOrder);

                string   chineseContent = GameDataUtils.GetChineseContent(zhuXianZhangJiePeiZhi.chapterName, false);
                string[] array          = chineseContent.Split(new char[]
                {
                    ' '
                });
                this.TextChapterTitle.set_text(array[1] + "<size=25>(" + array[0] + ")</size>");
            }
            ZhuXianPeiZhi zhuXianPeiZhi3 = DataReader <ZhuXianPeiZhi> .Get(di.dungeonId);

            InstancesLayoutItem component;
            if (zhuXianPeiZhi3.bossInstanceBoss == 1)
            {
                GameObject boss = this.GetBoss();
                component = boss.GetComponent <InstancesLayoutItem>();
                boss.get_transform().SetParent(this.InstancesLayout);
                boss.GetComponent <RectTransform>().set_localScale(Vector3.get_one());
                boss.set_name(di.dungeonId.ToString());
            }
            else
            {
                GameObject normal = this.GetNormal();
                component = normal.GetComponent <InstancesLayoutItem>();
                normal.get_transform().SetParent(this.InstancesLayout);
                normal.GetComponent <RectTransform>().set_localScale(Vector3.get_one());
                normal.set_name(di.dungeonId.ToString());
            }
            component.GetComponent <ButtonCustom>().onClickCustom = new ButtonCustom.VoidDelegateObj(this.OnClcikInstancesLayoutItem);
            this.listInstanceItem.Add(component);
            bool isLock = (bool)DungeonManager.Instance.CheckLock(di.dungeonId).get_Item("ISLock");
            component.RefreshUI(DataReader <FuBenJiChuPeiZhi> .Get(di.dungeonId), isLock, k, di.star);
        }
    }
Ejemplo n.º 13
0
    private void RefreshBoxReward(int chapter, DungeonType.ENUM dungeonType)
    {
        if (dungeonType == DungeonType.ENUM.Normal || dungeonType == DungeonType.ENUM.Elite)
        {
            this.Reward.get_gameObject().SetActive(true);
            ZhuXianZhangJiePeiZhi zhuXianZhangJiePeiZhi = DataReader <ZhuXianZhangJiePeiZhi> .DataList.Find((ZhuXianZhangJiePeiZhi a) => a.chapterOrder == chapter && a.chapterType == (int)dungeonType);

            if (zhuXianZhangJiePeiZhi != null)
            {
                for (int i = 0; i < zhuXianZhangJiePeiZhi.needStar.get_Count(); i++)
                {
                    int needstar = zhuXianZhangJiePeiZhi.needStar.get_Item(i);
                    int key      = BoxRewardManager.Instance.MakeBoxRewardID(zhuXianZhangJiePeiZhi.id, (int)dungeonType, needstar);
                    if (BoxRewardManager.Instance.m_mapChapterAwards.ContainsKey(key))
                    {
                        ChapterAwardInfo chapterAwardInfo = BoxRewardManager.Instance.m_mapChapterAwards[key];
                        if (chapterAwardInfo.canReceive && !chapterAwardInfo.isReceived)
                        {
                            this.currentChapterAwardInfo = chapterAwardInfo;
                            break;
                        }
                        if (!chapterAwardInfo.canReceive)
                        {
                            this.currentChapterAwardInfo = chapterAwardInfo;
                            break;
                        }
                    }
                    else
                    {
                        Debug.LogError("cai == null");
                    }
                }
                ChapterInfoCustom chapterInfoCustom = null;
                if (dungeonType == DungeonType.ENUM.Normal)
                {
                    chapterInfoCustom = this.dicChaptersNormal.get_Item(chapter);
                }
                else if (dungeonType == DungeonType.ENUM.Elite)
                {
                    chapterInfoCustom = this.dicChaptersElite.get_Item(chapter);
                }
                ChapterInfo chapterInfo = this.listData.get_Item(chapter - 1);
                if (chapterInfoCustom.canGetReward)
                {
                    this.BtnBoxReward.get_transform().FindChild("Image1").get_gameObject().SetActive(true);
                    this.BtnBoxReward.get_transform().FindChild("Image2").get_gameObject().SetActive(false);
                    if (this.fxBoxReward != 0)
                    {
                        FXSpineManager.Instance.DeleteSpine(this.fxBoxReward, true);
                    }
                    this.fxBoxReward = FXSpineManager.Instance.PlaySpine(1601, this.BtnBoxReward.get_transform().FindChild("FX"), "InstanceSelectUI", 2001, null, "UI", 0f, 0f, 1f, 1f, false, FXMaskLayer.MaskState.None);
                }
                else if (!chapterInfoCustom.canGetReward && chapterInfo.totalStar == chapterInfoCustom.needStar.get_Item(chapterInfoCustom.needStar.get_Count() - 1))
                {
                    this.BtnBoxReward.get_transform().FindChild("Image1").get_gameObject().SetActive(false);
                    this.BtnBoxReward.get_transform().FindChild("Image2").get_gameObject().SetActive(true);
                    if (this.fxBoxReward != 0)
                    {
                        FXSpineManager.Instance.DeleteSpine(this.fxBoxReward, true);
                    }
                }
                else
                {
                    this.BtnBoxReward.get_transform().FindChild("Image1").get_gameObject().SetActive(true);
                    this.BtnBoxReward.get_transform().FindChild("Image2").get_gameObject().SetActive(false);
                    if (this.fxBoxReward != 0)
                    {
                        FXSpineManager.Instance.DeleteSpine(this.fxBoxReward, true);
                    }
                }
                this.currentRewardNeedStar = chapterInfoCustom.starCondition;
                this.TextRewardNow.set_text(string.Concat(new object[]
                {
                    string.Empty,
                    chapterInfo.totalStar,
                    "/",
                    chapterInfoCustom.starCondition
                }));
            }
        }
        else
        {
            this.Reward.get_gameObject().SetActive(false);
        }
    }
Ejemplo n.º 14
0
    private void ResetChapterRewardBadge(int chapter, DungeonType.ENUM dungeonType)
    {
        ChapterInfoCustom chapterInfoCustom = this.dicChaptersNormal.get_Item(chapter);

        if (chapterInfoCustom.canGetReward)
        {
            this.BtnNormal.get_transform().FindChild("ImageBadge").get_gameObject().SetActive(true);
        }
        else
        {
            this.BtnNormal.get_transform().FindChild("ImageBadge").get_gameObject().SetActive(false);
        }
        chapterInfoCustom = this.dicChaptersElite.get_Item(chapter);
        if (chapterInfoCustom.canGetReward)
        {
            this.BtnElite.get_transform().FindChild("ImageBadge").get_gameObject().SetActive(true);
        }
        else
        {
            this.BtnElite.get_transform().FindChild("ImageBadge").get_gameObject().SetActive(false);
        }
        this.BtnNormal.get_transform().FindChild("ImageBadge").get_gameObject().SetActive(BoxRewardManager.Instance.CheckNormalDungeonBadge());
        this.BtnElite.get_transform().FindChild("ImageBadge").get_gameObject().SetActive(BoxRewardManager.Instance.CheckEliteDungeonBadge());
        this.BtnLastChapter.get_transform().FindChild("ImageBadge").get_gameObject().SetActive(false);
        this.BtnNextChapter.get_transform().FindChild("ImageBadge").get_gameObject().SetActive(false);
        if (dungeonType == DungeonType.ENUM.Normal)
        {
            for (int i = chapter - 1; i >= this.minChapterNormal; i--)
            {
                chapterInfoCustom = this.dicChaptersNormal.get_Item(i);
                if (chapterInfoCustom.canGetReward)
                {
                    this.BtnLastChapter.get_transform().FindChild("ImageBadge").get_gameObject().SetActive(true);
                    break;
                }
            }
            for (int j = chapter + 1; j <= this.maxChapterNormal; j++)
            {
                chapterInfoCustom = this.dicChaptersNormal.get_Item(j);
                if (chapterInfoCustom.canGetReward)
                {
                    this.BtnNextChapter.get_transform().FindChild("ImageBadge").get_gameObject().SetActive(true);
                    break;
                }
            }
        }
        else if (dungeonType == DungeonType.ENUM.Elite)
        {
            for (int k = chapter - 1; k >= this.minChapterNormal; k--)
            {
                chapterInfoCustom = this.dicChaptersElite.get_Item(k);
                if (chapterInfoCustom.canGetReward)
                {
                    this.BtnLastChapter.get_transform().FindChild("ImageBadge").get_gameObject().SetActive(true);
                    break;
                }
            }
            for (int l = chapter + 1; l <= this.maxChapterNormal; l++)
            {
                chapterInfoCustom = this.dicChaptersElite.get_Item(l);
                if (chapterInfoCustom.canGetReward)
                {
                    this.BtnNextChapter.get_transform().FindChild("ImageBadge").get_gameObject().SetActive(true);
                    break;
                }
            }
        }
    }
Ejemplo n.º 15
0
 private void RefreshDungeonTypeData(DungeonType.ENUM type)
 {
     this.listData = DungeonManager.Instance.GetDataByInstanceType((int)type);
 }