Пример #1
0
    ChoiceGroupView CreateChoiceGroupView(IList <Choice> choices)
    {
        ChoiceGroupView choiceGroupView = Instantiate(choiceGroupViewPrefab);

        choiceGroupView.transform.SetParent(choiceContainerView.transform, false);
        choiceGroupView.LayoutChoices(choices);
        CreateEmptyView(choiceGroupView.rectTransform.sizeDelta.y);
        return(choiceGroupView);
    }
Пример #2
0
    ChoiceGroupView CreateChoiceGroupView(IList <Choice> Choices)
    {
        ChoiceGroupView choiceGroupView = Instantiate(ChoiceGroupPrefab);

        choiceGroupView.transform.SetParent(choiceGroupManager.transform, false);
        choiceGroupView.LayoutChoices(Choices);
        //CreateEmptyView(choiceGroupView.rectTransform.sizeDelta.y);
        return(choiceGroupView);
    }