private static void ShowNextDialogue() { DialogueData data = _queue.Dequeue(); _dialogueBox = new DialogueBox(); _dialogueBox.Show(data.CharacterName, data.Text); Console.WriteLine("Showing dialogue with text: " + data.Text); }
/// <summary> /// Adds the given dialogue data to the queue to be shown when possible. /// </summary> /// <param name="data"></param> public static void Enqueue(DialogueData data) { _queue.Enqueue(data); }