Comment on page
exec Dialogue.sh << script.txt >> output.log
To manually start a Dialogue is as easy as calling the
Runmethod from the Dialogue component. Bear in mind though that this method is a coroutine.
The previous example shows how to start a conversation between characters. We provide a coroutine so that you can keep track when the conversation finishes. For example:
public IEnumerator StartDialogue()
yield return this.dialogue.Run();
Thanks to the power of coroutines, we can hold the execution of the
StartDialoguemethod and resume it once the Dialogue is finished.