diff --git a/Runtime/DialogueRunner.cs b/Runtime/DialogueRunner.cs index c8063d0d..bb76e61a 100644 --- a/Runtime/DialogueRunner.cs +++ b/Runtime/DialogueRunner.cs @@ -716,14 +716,7 @@ void Awake() Debug.Log($"Dialogue Runner has no LineProvider; creating a {nameof(TextLineProvider)}.", this); } } - } - /// - /// Prepares the Dialogue Runner for start. - /// - /// If is , the Dialogue Runner will start. - private void Start() - { if (dialogueViews.Length == 0) { Debug.LogWarning($"Dialogue Runner doesn't have any dialogue views set up. No lines or options will be visible."); @@ -747,11 +740,18 @@ private void Start() // Load this new Yarn Project. SetProject(yarnProject); + } + } - if (startAutomatically) - { - StartDialogue(startNode); - } + /// + /// Prepares the Dialogue Runner for start. + /// + /// If is , the Dialogue Runner will start. + private void Start() + { + if (yarnProject != null && startAutomatically) + { + StartDialogue(startNode); } }