Skip to content

Commit

Permalink
Fix use of obsolete function in NodeVisitedTracker.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
desplesda committed Mar 23, 2020
1 parent 90f46bc commit 4431be5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ void Start()
{
// Register a function on startup called "visited" that lets Yarn
// scripts query to see if a node has been run before.
dialogueRunner.RegisterFunction("visited", 1, delegate (Yarn.Value[] parameters)
dialogueRunner.AddFunction("visited", 1, delegate (Yarn.Value[] parameters)
{
var nodeName = parameters[0];
return _visitedNodes.Contains(nodeName.AsString);
Expand Down

0 comments on commit 4431be5

Please sign in to comment.