As I understood returning function as is from the LatentActionNode also works as expected – no need to StartCoroutine():
[Category(“Gameplay”)]
[Description(“Show a dialogue and wait till it end.”)]
public class ShowDialogue : LatentActionNode
{
public override IEnumerator Invoke(string dialogue)
{
return Dialogues.ShowDialogue(dialogue);
}
public override bool allowRoutineQueueing => false;
}
Thank you!
Login
Register
By registering on this website you agree to our Privacy Policy.