/*public static SubList CreateSubList(Transform parent) * { * return CreateSubList(parent, null); * }*/ public static SubList CreateSubList(Transform parent, Personalization personalize) { GameObject obj = new GameObject(ROW_NAME); SubList sublist = obj.AddComponent <SubList>(); sublist.Initialize(); obj.transform.SetParent(parent); return(sublist); }
public void AddSublist() { GameObject obj = new GameObject("Sublist"); SubList list = obj.AddComponent <SubList>(); list.Initialize(); list.transform.SetParent(itemsReference); //TODO možda: //Sublist.Initialize(); -> IMultiList.Initialize(); -> AddComponentWithParameters Data.Item data = new Data.Item("HEADER"); List.Item item1 = CreateItem(data, obj.transform); item1.transform.SetParent(obj.transform); list.Add(item1); }