Beispiel #1
0
    private void MakeAndStoreSection(int i)
    {
        TipPopUpSection newSection = CloneDefaultSection();

        ConfigureSection(newSection, tipsData[i]);

        storedSections[i] = newSection;
    }
Beispiel #2
0
    private void ConfigureSection(TipPopUpSection newSection, TipSectionData sectionData)
    {
        newSection.PopulateSection(sectionData);
        newSection.transform.SetParent(verticalLayoutGroup, false);

        SetRectTransformHeight(newSection.GetComponent <RectTransform>(), sectionData.height);

        newSection.gameObject.SetActive(true);
    }