public IEnumerator AddActions(int j, int p) { var a = dbh.GetActionsByPlayerAndGameID(j, p); foreach (var actions in a) { GameObject newAction = Instantiate(ActionPrefab); newAction.transform.SetParent(ContentHolderParent.transform); newAction.transform.GetChild(0).GetComponent <Text>().text = actions.Numero.ToString(); newAction.transform.GetChild(1).GetComponent <Text>().text = actions.Nombre; newAction.transform.localPosition = Vector3.zero; newAction.transform.localRotation = Quaternion.identity; newAction.transform.localScale = Vector3.one; yield return(new WaitForSeconds(0.1f)); } }