public void StartCombat() { InitList = new InitList(PlayerList(), MonsterList()); Transform InitTable = Tables.GetChild(0).GetChild(1); TableManager tm = InitTable.GetComponent <TableManager>(); tm.InitializeTable(); foreach (Creature c in InitList.List) { Transform temp = Instantiate(InitTemplate, InitTable); temp.GetChild(0).GetComponent <TextMeshProUGUI>().text = c.name; temp.gameObject.SetActive(true); temp.GetChild(1).gameObject.SetActive(false); tm.data.Add(temp); } tm.BuildTable(); tm.data[0].GetChild(1).gameObject.SetActive(true); SetRound(1); }