public PopupBoxPerson getPersonBox() { GameObject obj = Instantiate(personBox) as GameObject; PopupBoxPerson specific = obj.GetComponent <PopupBoxPerson>(); //specific.setTo(viewer, p, select); return(specific); }
public PopupScrollSet getScrollSet(List <int> indices) { PopupScrollSet specific = getInnerScrollSet(); foreach (int q in indices) { PopupBoxPerson box = getPersonBox(); box.gameObject.transform.SetParent(specific.gameObject.transform); specific.scrollables.Add(box); } return(specific); }