// Token: 0x0600997C RID: 39292 RVA: 0x002BD258 File Offset: 0x002BB458
        public void SetHero(BattleHero hero)
        {
            if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_SetHeroBattleHero_hotfix != null)
            {
                this.m_SetHeroBattleHero_hotfix.call(new object[]
                {
                    this,
                    hero
                });
                return;
            }
            BJLuaObjHelper.IsSkipLuaHotfix = false;
            this.m_hero = hero;
            if (hero == null)
            {
                return;
            }
            ConfigDataCharImageInfo charImageInfo = hero.HeroInfo.GetCharImageInfo(hero.StarLevel);

            if (charImageInfo != null)
            {
                this.m_heroIconImage.sprite = AssetUtility.Instance.GetSprite(charImageInfo.RoundHeadImage);
            }
            ConfigDataArmyInfo armyInfo = hero.GetActiveJob().JobConnectionInfo.m_jobInfo.m_armyInfo;

            this.m_armyIconImage.sprite = AssetUtility.Instance.GetSprite(armyInfo.Icon);
        }