Esempio n. 1
0
        // Token: 0x060108AE RID: 67758 RVA: 0x0044D46C File Offset: 0x0044B66C
        private void UpdateHeroLifeList()
        {
            if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_UpdateHeroLifeList_hotfix != null)
            {
                this.m_UpdateHeroLifeList_hotfix.call(new object[]
                {
                    this
                });
                return;
            }
            BJLuaObjHelper.IsSkipLuaHotfix = false;
            GameObjectUtility.DestroyChildren(this.m_lifeContent);
            if (this.m_heroInformationInfo == null)
            {
                return;
            }
            List <int> heroBiographies_ID = this.m_heroInformationInfo.HeroBiographies_ID;

            this.biographyCtrlList.Clear();
            GameObject assetInContainer = base.GetAssetInContainer <GameObject>("LifeItem");

            foreach (int biographyId in heroBiographies_ID)
            {
                GameObject gameObject = UnityEngine.Object.Instantiate <GameObject>(assetInContainer);
                PrefabControllerCreater.CreateAllControllers(gameObject);
                FettersInformationLifeItemUIController component = gameObject.GetComponent <FettersInformationLifeItemUIController>();
                component.InitLifeItem(biographyId);
                gameObject.transform.SetParent(this.m_lifeContent.transform, false);
                if (!this.biographyCtrlList.Contains(component))
                {
                    this.biographyCtrlList.Add(component);
                }
            }
        }
 // Token: 0x0600E6A9 RID: 59049 RVA: 0x003DDF70 File Offset: 0x003DC170
 public LuaExportHelper(FettersInformationLifeItemUIController owner)
 {
     this.m_owner = owner;
 }