public void InitScreen(XsollaFormElement pElem) { _title.text = pElem.GetTableOptions()._head[0]; foreach (string item in pElem.GetTableOptions()._body) { GameObject itemtable = Instantiate(Resources.Load("Prefabs/SimpleView/_PaymentFormElements/ContainerTableItem")) as GameObject; itemtable.GetComponentInChildren <Text>().text = item; itemtable.transform.SetParent(_container.transform); } }
public void InitScreen(XsollaFormElement pElem) { _title.text = pElem.GetTableOptions()._head[0]; foreach (string item in pElem.GetTableOptions()._body) { GameObject itemtable = Instantiate(Resources.Load("Prefabs/SimpleView/_PaymentFormElements/ContainerTableItem")) as GameObject; itemtable.GetComponentInChildren<Text>().text = item; itemtable.transform.SetParent(_container.transform); } }