We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Currently you have to keep a reference to a node and subscribe to its OnVisited event in order to call node.Exit() to move to the next node
For Example:
var T1 = nodeGraph.Create("T1"); T1.OnVisited += (s) => { s.Exit(); };
This must be done for each node or else it will stay on that node forever.
I propose a default 'Instant transition' behaviour which moves to the next node as soo as the node is visited.
Also I propose that a subscriber can be set through the NodeGraph
nodeGraph.Visited("T1", OnT1Visited); nodeGraph.Visited("T2", (sender)=>{ sender.Exit(); });
The text was updated successfully, but these errors were encountered:
Fixed issue: Node OnVisited event #19
3af8fb6
Merge pull request #20 from Timmoth/Tim
5420ea3
Fixed issue Node OnVisited event #19
#20
Sorry, something went wrong.
No branches or pull requests
Currently you have to keep a reference to a node and subscribe to its OnVisited event in order to call node.Exit() to move to the next node
For Example:
This must be done for each node or else it will stay on that node forever.
I propose a default 'Instant transition' behaviour which moves to the next node as soo as the node is visited.
Also I propose that a subscriber can be set through the NodeGraph
nodeGraph.Visited("T1", OnT1Visited);
nodeGraph.Visited("T2", (sender)=>{ sender.Exit(); });
The text was updated successfully, but these errors were encountered: