private void initHero() { skillWindowTag.Tab_active = false; UnityUtil.SetObjectEnabledOnce(unitNamePanel.gameObject, false); UnityUtil.SetObjectEnabledOnce(unitSkillPanel.gameObject, false); UnityUtil.SetObjectEnabledOnce(unitLinkPanel.gameObject, false); UnityUtil.SetObjectEnabledOnce(unitParamPanel.gameObject, false); UnityUtil.SetObjectEnabledOnce(unitAilmentPanel.gameObject, false); UnityUtil.SetObjectEnabledOnce(heroDetailPanel.gameObject, true); Label_text = GameTextUtil.GetText("battle_infotext5"); PacketStructHero hero = null; int unique_id = UserDataAdmin.Instance.m_StructPlayer.current_hero_id; for (int i = 0; i < UserDataAdmin.Instance.m_StructHeroList.Length; ++i) { if (UserDataAdmin.Instance.m_StructHeroList[i].unique_id == unique_id) { hero = UserDataAdmin.Instance.m_StructHeroList[i]; } } heroDetailPanel.SetDetail(hero); m_CharaIdx = GlobalDefine.PartyCharaIndex.HERO; }