public void ChangeChoice(int input) { TextMeshProUGUI lastChoice = dialogueOptions.transform.GetChild(displayedDialogue.SelectedIndex).GetComponent <TextMeshProUGUI>(); lastChoice.color = notSelectedOption; displayedDialogue.ChangeIndex(input); TextMeshProUGUI newChoice = dialogueOptions.transform.GetChild(displayedDialogue.SelectedIndex).GetComponent <TextMeshProUGUI>(); newChoice.color = selectedOption; }