Skip to content

Commit

Permalink
Fix skip null check
Browse files Browse the repository at this point in the history
  • Loading branch information
BDeshiDev committed Aug 27, 2024
1 parent c0c68d5 commit 3bc97f3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,10 @@ public async UniTask PlayDialogue(DialogueGraph graph, DialogueNodeBase startNod
[ContextMenu("Skip To End of chain")]
public void SkipToEndOfDialogueChain()
{
_skipToEndOfDialogueChain = true;
_curNode.HandleDialogueAdvance();
if(_curNode != null){
_skipToEndOfDialogueChain = true;
_curNode.HandleDialogueAdvance();
}
}

public void AdvanceDialogue()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "com.studio23.ss2.dialoguesystem",
"version": "0.4.26",
"version": "0.4.27",
"displayName": "Dialogue System",
"description": "Dialogue system is an authoring tool for developers to integrate dialogue from scriptwriters inside unity.",
"unity": "2022.3",
Expand Down

0 comments on commit 3bc97f3

Please sign in to comment.