public void AddHero(HeroUnit hero) { HeroInfo info = Instantiate(infoPrefab); info.InParty = isPartyList; info.SetHero(hero); info.transform.SetParent(transform, false); heroInfoMap.Add(hero, info); }