Example #1
0
    private void AddCards()
    {
        for (int i = 0; i < heroList.list.Count; i++)
        {
            Item       hero        = heroList.list[i];
            GameObject newHeroCard = heroCardPool.GetObject();
            newHeroCard.transform.SetParent(contentPanel);

            HeroCard heroCard = newHeroCard.GetComponent <HeroCard>();
            heroCard.Setup(hero, this);
        }
    }