public void BeginInteraction(Girl girl) { if (state != State.Idle) { Debug.LogError("Failed to begin interaction, the interaction state is not idle."); return; } interactingWith = girl; currentDialogue = interactingWith.GetDialogue(); state = State.Context; contextIndex = 0; SpeakerText.text = interactingWith.Name + ":"; MessageText.text = currentDialogue.Context[contextIndex++]; foreach (var child in AnswersGroup) { Destroy(((Transform)child).gameObject); } Canvas.gameObject.SetActive(true); }