Exemple #1
0
    private ConstellationsScrollViewButton AddButton(int i)
    {
        Constellation item      = ConstellationManager.Instance.constellationItemList[i];
        GameObject    newButton = GameManager.Instance.GetPool().GetObject();

        newButton.transform.SetParent(contentPanel, false);

        ConstellationsScrollViewButton sampleButton = newButton.GetComponent <ConstellationsScrollViewButton>();

        sampleButton.Setup(item, this, i);
        return(sampleButton);
    }