This is a workaround about returning call. There are two new command:
<<push toNode returnNode>>
<<pop>>
Basically it's the same as jump. It will jump to toNode
, and push the returnNode
to a stack.
It will pop the top of a stack and jump into that node.
Put YarnReturnjump.cs
as a Component along side with DialogueRunner
.
Please don't mix a <<jump>>
and <<push>>
with a same node.
If that node expect something to be popped, it will behave strangely if you don't push something to the stack.