From b307dc9547f9d21adc8551f5ac1b5d4fe98e9044 Mon Sep 17 00:00:00 2001 From: Jon Manning Date: Mon, 31 Oct 2022 16:39:41 +1100 Subject: [PATCH] Dialogue Runner: YarnProject.GetProgram() -> .Program --- Runtime/DialogueRunner.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Runtime/DialogueRunner.cs b/Runtime/DialogueRunner.cs index 24105971..c3805c30 100644 --- a/Runtime/DialogueRunner.cs +++ b/Runtime/DialogueRunner.cs @@ -242,7 +242,7 @@ public void SetProject(YarnProject newProject) // Register any new functions that we found as part of doing this. ActionManager.RegisterFunctions(Dialogue.Library); - Dialogue.SetProgram(newProject.GetProgram()); + Dialogue.SetProgram(newProject.Program); if (lineProvider != null) { lineProvider.YarnProject = newProject; @@ -264,7 +264,7 @@ public void SetInitialVariables(bool overrideExistingValues = false) // grabbing all the initial values from the program and inserting them into the storage // we first need to make sure that the value isn't already set in the storage - var values = yarnProject.GetProgram().InitialValues; + var values = yarnProject.Program.InitialValues; foreach (var pair in values) { if (!overrideExistingValues && VariableStorage.Contains(pair.Key))