public void CodeSentence(string sentence) { codesArray[count] = Instantiate(codeText) as GameObject; codesArray[count].transform.SetParent(codesParent.transform); codesArray[count].transform.localScale = Vector3.one; codesArray[count].GetComponent <Text>().text = "" + (1 + count) + ".\t" + sentence; count++; window.Themes(WindowController.GetLastTheme()); StartCoroutine(SecToWait(0.2f)); }