// Token: 0x06014DE7 RID: 85479 RVA: 0x00549ABC File Offset: 0x00547CBC public void SetEvent(ConfigDataEventInfo eventInfo) { if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_SetEventConfigDataEventInfo_hotfix != null) { this.m_SetEventConfigDataEventInfo_hotfix.call(new object[] { this, eventInfo }); return; } BJLuaObjHelper.IsSkipLuaHotfix = false; if (eventInfo == null) { return; } this.m_nameText.text = eventInfo.Name; this.m_descText.text = eventInfo.Desc; this.m_monsterLevelText.text = eventInfo.MonsterLevel.ToString(); this.m_energyText.text = eventInfo.EnergySuccess.ToString(); this.m_dangerUIStateController.SetToUIState((!eventInfo.IsDanger) ? "Normal" : "Danger", false, true); this.m_missionUIStateController.SetToUIState((!eventInfo.IsDanger) ? "Normal" : "Danger", false, true); IConfigDataLoader configDataLoader = GameManager.Instance.ConfigDataLoader as IConfigDataLoader; ConfigDataCharImageInfo configDataCharImageInfo = configDataLoader.GetConfigDataCharImageInfo(eventInfo.CharImage_ID); this.CreateCharImage(configDataCharImageInfo); }
// Token: 0x06014E45 RID: 85573 RVA: 0x0054AC08 File Offset: 0x00548E08 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(); if (this.m_eventInfo != null && this.m_eventInfo.CharImage_ID != 0) { IConfigDataLoader configDataLoader = GameManager.Instance.ConfigDataLoader as IConfigDataLoader; ConfigDataCharImageInfo configDataCharImageInfo = configDataLoader.GetConfigDataCharImageInfo(this.m_eventInfo.CharImage_ID); if (configDataCharImageInfo != null) { base.CollectAsset(configDataCharImageInfo.Spine); base.CollectSpriteAsset(configDataCharImageInfo.Image); } } return(base.IsNeedLoadDynamicRes()); }