Esempio n. 1
0
        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);
        }
Esempio n. 2
0
 /// <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);
 }