/// <summary> /// Writes the dialog characters of the current conversation's current dialog. /// </summary> /// <returns>The dialog characters.</returns> private IEnumerator DrawDialogCharacters() { //TODO: Take into account that the interlocutor may not have a name dialogText.text = InterlocutorNameInBold(); characterParser.LoadDialog(currentDialog.Sentence); string nextString = "dummy"; yield return(new WaitForSeconds(startDelay)); while (nextString != "") { nextString = characterParser.NextString(); dialogText.text += nextString; yield return(new WaitForSeconds(drawSpeed)); } drawingCoroutine = null; }