From 81861bc012b691a90bc718fb0ab27c9587254f58 Mon Sep 17 00:00:00 2001 From: B-DeshiDev Date: Tue, 30 Apr 2024 11:12:46 +0600 Subject: [PATCH] Update DialogueSystem.cs --- .../Runtime/Core/DialogueSystem.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Assets/Packages/com.studio23.ss2.dialoguesystem/Runtime/Core/DialogueSystem.cs b/Assets/Packages/com.studio23.ss2.dialoguesystem/Runtime/Core/DialogueSystem.cs index 8cb3b44..02e71f8 100644 --- a/Assets/Packages/com.studio23.ss2.dialoguesystem/Runtime/Core/DialogueSystem.cs +++ b/Assets/Packages/com.studio23.ss2.dialoguesystem/Runtime/Core/DialogueSystem.cs @@ -76,14 +76,14 @@ public void StartDialogue() public async UniTask PlayDialogue(DialogueGraph graph) { - _currentGraph.Initialize(); + graph.Initialize(); await PlayDialogue(graph, graph.StartNode); } public async UniTask PlayDialogue(DialogueNodeBase startNode) { - _currentGraph.Initialize(); var graph = startNode.graph as DialogueGraph; + graph.Initialize(); await PlayDialogue(graph, startNode); }