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); }