private IEnumerator DialogueCoroutine() { commandText.SetDialogueSequence(dialogueSequence); commandText.StartSequence(); yield return(new WaitUntil(() => commandText.HasFinished)); finishEvent.Invoke(); }