示例#1
0
        // Token: 0x0600CE0A RID: 52746 RVA: 0x0038B4F8 File Offset: 0x003896F8
        private void CreatePathItemList(List <GetPathData> getPathList, string getPathDesc)
        {
            if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_CreatePathItemListList ` 1String_hotfix != null)
            {
                this.m_CreatePathItemListList ` 1String_hotfix.call(new object[]
                {
                    this,
                    getPathList,
                    getPathDesc
                });
                return;
            }
            BJLuaObjHelper.IsSkipLuaHotfix = false;
            GameObjectUtility.DestroyChildren(this.m_contentObj);
            if (getPathList == null || getPathList.Count == 0)
            {
                this.m_tips.gameObject.SetActive(true);
                this.m_tipsText.text = getPathDesc;
                return;
            }
            this.m_tips.gameObject.SetActive(false);
            IConfigDataLoader configDataLoader = GameManager.Instance.ConfigDataLoader as IConfigDataLoader;

            foreach (GetPathData getPathData in getPathList)
            {
                if (getPathData.PathType == GetPathType.GetPathType_HeroDungeon)
                {
                    ConfigDataHeroDungeonLevelInfo configDataHeroDungeonLevelInfo = configDataLoader.GetConfigDataHeroDungeonLevelInfo(getPathData.ID);
                    if (configDataHeroDungeonLevelInfo == null)
                    {
                        continue;
                    }
                    ConfigDataHeroInformationInfo configDataHeroInformationInfo = configDataLoader.GetConfigDataHeroInformationInfo(configDataHeroDungeonLevelInfo.m_chapterId);
                    if (configDataHeroInformationInfo == null || !configDataHeroInformationInfo.IsDungeonLevelsUnLock)
                    {
                        continue;
                    }
                }
                GameObject gameObject = UnityEngine.Object.Instantiate <GameObject>(this.m_itemPrefab);
                GetPathItemUIController getPathItemUIController = GameObjectUtility.AddControllerToGameObject <GetPathItemUIController>(gameObject);
                getPathItemUIController.EventOnGotoButtonClick += this.OnGetPathItemGotoButtonClick;
                getPathItemUIController.SetGetPath(getPathData);
                gameObject.transform.SetParent(this.m_contentObj.transform, false);
            }
        }
        // Token: 0x0600CAE5 RID: 51941 RVA: 0x0037EC74 File Offset: 0x0037CE74
        public void SetReward(List <Goods> rewardList, string name)
        {
            if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_SetRewardList ` 1String_hotfix != null)
            {
                this.m_SetRewardList ` 1String_hotfix.call(new object[]
                {
                    this,
                    rewardList,
                    name
                });
                return;
            }
            BJLuaObjHelper.IsSkipLuaHotfix = false;
            this.m_nameText.text           = name;
            GameObjectUtility.DestroyChildren(this.m_rewardGroupTransform.gameObject);
            GameObject assetInContainer = base.GetAssetInContainer <GameObject>("RewardGoods");

            RewardGoodsUIController.CreateRewardGoodsList(rewardList, this.m_rewardGroupTransform, assetInContainer, null, true, 0, true);
        }