Reply To: How to make latent nodes from a coroutine?

FlowCanvas Forums Support How to make latent nodes from a coroutine? Reply To: How to make latent nodes from a coroutine?

#3102
anton petrov
Participant

Hey Gavalakis,

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!