Exemplo n.º 1
0
        // Token: 0x060120C7 RID: 73927 RVA: 0x004A773C File Offset: 0x004A593C
        protected override bool IsNeedLoadDynamicRes()
        {
            if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_IsNeedLoadDynamicRes_hotfix != null)
            {
                return(Convert.ToBoolean(this.m_IsNeedLoadDynamicRes_hotfix.call(new object[]
                {
                    this
                })));
            }
            BJLuaObjHelper.IsSkipLuaHotfix = false;
            base.ClearAssetList();
            ProjectLPlayerContext projectLPlayerContext = GameManager.Instance.PlayerContext as ProjectLPlayerContext;

            foreach (Mission mission in projectLPlayerContext.GetAllCompletedMissionList())
            {
                if (mission != null && mission.Config != null)
                {
                    foreach (Goods goods in mission.Config.Reward)
                    {
                        base.CollectSpriteAsset(UIUtility.GetGoodsIconName(goods.GoodsType, goods.Id));
                    }
                }
            }
            foreach (Mission mission2 in projectLPlayerContext.GetAllProcessingMissionList())
            {
                if (mission2 != null && mission2.Config != null)
                {
                    foreach (Goods goods2 in mission2.Config.Reward)
                    {
                        base.CollectSpriteAsset(UIUtility.GetGoodsIconName(goods2.GoodsType, goods2.Id));
                    }
                }
            }
            foreach (Mission mission3 in projectLPlayerContext.GetAllFinishedMissionList())
            {
                if (mission3 != null && mission3.Config != null)
                {
                    foreach (Goods goods3 in mission3.Config.Reward)
                    {
                        base.CollectSpriteAsset(UIUtility.GetGoodsIconName(goods3.GoodsType, goods3.Id));
                    }
                }
            }
            return(base.IsNeedLoadDynamicRes());
        }