private void OnChoiceSelected(Button button) { int index = choices.IndexOf(button); Debug.Log("Choice " + index + " selected"); DialogController dc = DialogController.GetInstance(); // If we're at the end then kill this screen if (dc.currNode.tags.Contains(Conversation.TAG_END)) { GameObject.Destroy(this.gameObject); dc.EndConversation(); return; } dc.SelectChoice(index); DisplayConversationNode(dc.currNode); }