// Token: 0x06013165 RID: 78181 RVA: 0x004DE4D8 File Offset: 0x004DC6D8 public void OnPointerClick(PointerEventData eventData) { if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_OnPointerClickPointerEventData_hotfix != null) { this.m_OnPointerClickPointerEventData_hotfix.call(new object[] { this, eventData }); return; } BJLuaObjHelper.IsSkipLuaHotfix = false; if (!this.m_signItemGoodsDummy.GetComponentInChildren <Button>().IsActive() && this.m_signState != SignRewardItemUIController.SignState.NeedSign && this.m_itemInfo != null && this.m_itemInfo.FuncType == ItemFuncType.ItemFuncType_StaticBox) { IConfigDataLoader configDataLoader = GameManager.Instance.ConfigDataLoader as IConfigDataLoader; ConfigDataStaticBoxInfo configDataStaticBoxInfo = configDataLoader.GetConfigDataStaticBoxInfo(this.m_itemInfo.FuncTypeParam1); if (this.EventOnShowBoxRewards != null && configDataStaticBoxInfo != null) { this.EventOnShowBoxRewards(configDataStaticBoxInfo.Reward, this); } } }
// Token: 0x06013224 RID: 78372 RVA: 0x004E0C84 File Offset: 0x004DEE84 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(); IConfigDataLoader configDataLoader = GameManager.Instance.ConfigDataLoader as IConfigDataLoader; ProjectLPlayerContext projectLPlayerContext = GameManager.Instance.PlayerContext as ProjectLPlayerContext; List <Goods> signRewardMonthList = projectLPlayerContext.GetSignRewardMonthList(this.m_playerContext.GetServerTime().Month); foreach (Goods goods in signRewardMonthList) { base.CollectSpriteAsset(UIUtility.GetGoodsIconName(goods.GoodsType, goods.Id)); if (goods.GoodsType == GoodsType.GoodsType_Item) { ConfigDataItemInfo configDataItemInfo = configDataLoader.GetConfigDataItemInfo(goods.Id); if (configDataItemInfo != null && configDataItemInfo.FuncType == ItemFuncType.ItemFuncType_StaticBox) { ConfigDataStaticBoxInfo configDataStaticBoxInfo = configDataLoader.GetConfigDataStaticBoxInfo(configDataItemInfo.FuncTypeParam1); if (configDataStaticBoxInfo != null) { foreach (Goods goods2 in configDataStaticBoxInfo.Reward) { base.CollectSpriteAsset(UIUtility.GetGoodsIconName(goods2.GoodsType, goods2.Id)); } } } } } return(base.IsNeedLoadDynamicRes()); }