// Token: 0x0600E6C7 RID: 59079 RVA: 0x003DE1D0 File Offset: 0x003DC3D0
        public void InitVoiceItem(int heroPerformanceId)
        {
            if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_InitVoiceItemInt32_hotfix != null)
            {
                this.m_InitVoiceItemInt32_hotfix.call(new object[]
                {
                    this,
                    heroPerformanceId
                });
                return;
            }
            BJLuaObjHelper.IsSkipLuaHotfix = false;
            IConfigDataLoader     configDataLoader      = GameManager.Instance.ConfigDataLoader as IConfigDataLoader;
            ProjectLPlayerContext projectLPlayerContext = GameManager.Instance.PlayerContext as ProjectLPlayerContext;

            this.HeroPerformanceInfo = configDataLoader.GetConfigDataHeroPerformanceInfo(heroPerformanceId);
            if (this.HeroPerformanceInfo == null)
            {
                return;
            }
            this.m_isLock = (projectLPlayerContext.CanUnlockHeroPerformance(heroPerformanceId) != 0);
            this.UpdateIsNewValue();
            if (this.m_isLock)
            {
                this.m_uiStateCtrl.SetToUIState("Lock", false, true);
                int param = this.HeroPerformanceInfo.UnlockConditions[0].Param2;
                this.m_lockText.text = string.Format(configDataLoader.UtilityGetStringByStringTable(StringTableId.StringTableId_Msg_FavorabilityLimit), param);
            }
            else
            {
                this.m_uiStateCtrl.SetToUIState("Unlock", false, true);
                this.m_unlockNameText.text = this.HeroPerformanceInfo.Name;
                bool?isNew = this.IsNew;
                if (isNew.Value)
                {
                    this.m_uiStateCtrl.SetToUIState("New", false, true);
                }
                bool?isNew2 = this.IsNew;
                if (isNew2.Value)
                {
                    LocalAccountConfig.Instance.AddHaveReadHeroPerformance(heroPerformanceId);
                }
            }
        }