Update Dialogue to be Able to Click to Progress

This commit is contained in:
Philip W 2024-02-05 17:19:01 +00:00
parent 8bd990107f
commit 6b34ee2401
5 changed files with 7 additions and 6 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -69,6 +69,7 @@ void UAC_PlayerDialogueInterpreter::StartDialogue(UDialogueTree* DialogueTree)
void UAC_PlayerDialogueInterpreter::NextDialogue() void UAC_PlayerDialogueInterpreter::NextDialogue()
{ {
if (!IsValid(CurrentTextNode)) return; if (!IsValid(CurrentTextNode)) return;
if (IsValid(CurrentChoiceNode)) return;
if (CurrentTextNode->ChildrenNodes.Num() == 0) if (CurrentTextNode->ChildrenNodes.Num() == 0)
{ {
EndDialogue(); EndDialogue();