API
exec Dialogue.sh << script.txt >> output.log
To manually start a Dialogue is as easy as calling the Run
method from the Dialogue component. Bear in mind though that this method is a coroutine.
More information about coroutines here.
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:
Thanks to the power of coroutines, we can hold the execution of the StartDialogue
method and resume it once the Dialogue is finished.
Last updated