/// <summary> /// Shows and enters the dialgoue state /// </summary> /// <param name="gameTime"></param> /// <param name="name"></param> /// <param name="dialogue"></param> public void ShowDialogue(Npc npc, string dialogue = "") { this.textOwner = npc; dialogueBox.CurrentLine = 1; parentState.currentState = GameplayState.State.Frozen; drawingType = DrawingType.Dialogue; dialogueBox.TextOwner = npc.Name; dialogueBox.Text = dialogue == "" ? npc.GetRandomDialogue() : dialogue; }