public void DisplayNextSentence() { if (sentences.Count == 0) { EndDialogue(); return; } string sentence = sentences.Dequeue(); Audio_manager.StopPlaying(index - 1); StopAllCoroutines(); Audio_manager.Play(index); index = index + 1; StartCoroutine(TypeSentence(sentence)); //dialogueText.text = sentence; }