public void SetDialogue(DialogueSpecial dialogue) { ending = false; read = false; started = false; talk.Enqueue(dialogue); }
public void DisplayNextSentence() { if (talk.Count == 0) { EndDialogue(); return; } DialogueSpecial temp = talk.Dequeue(); person.text = temp.name; character = person.text; string s = temp.sentence; StopAllCoroutines(); SoundManagerScript.StopSound(); StartCoroutine(TypeSentence(s, character)); }