Skip to content

Commit

Permalink
Set dialogue program to yarn project's program on init, if present
Browse files Browse the repository at this point in the history
  • Loading branch information
desplesda committed Nov 29, 2024
1 parent 6192adc commit a625d16
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Runtime/DialogueRunner.cs
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,11 @@ public Dialogue Dialogue
dialogue.NodeCompleteHandler = OnNodeCompleted;
dialogue.DialogueCompleteHandler = OnDialogueCompleted;
dialogue.PrepareForLinesHandler = OnPrepareForLines;

if (yarnProject != null)
{
Dialogue.SetProgram(yarnProject.Program);
}
}
return dialogue;
}
Expand Down

0 comments on commit a625d16

Please sign in to comment.