Bugfix No Voice Over Data
This commit is contained in:
parent
2acea77079
commit
921cf41e1c
@ -76,7 +76,7 @@ void UAC_PlayerDialogueInterpreter::NextDialogue()
|
||||
if (IsValid(CurrentChoiceNode)) return;
|
||||
if (IsValid(CurrentTextNode))
|
||||
{
|
||||
CurrentVoiceOverAudioComponent->Stop();
|
||||
if (IsValid(CurrentVoiceOverAudioComponent)) CurrentVoiceOverAudioComponent->Stop();
|
||||
if (CurrentTextNode->ChildrenNodes.Num() == 0)
|
||||
{
|
||||
EndDialogue();
|
||||
@ -142,7 +142,7 @@ void UAC_PlayerDialogueInterpreter::NextDialogue()
|
||||
void UAC_PlayerDialogueInterpreter::MakeChoiceDialogue(const int Choice)
|
||||
{
|
||||
if (!IsValid(CurrentChoiceNode)) return;
|
||||
CurrentVoiceOverAudioComponent->Stop();
|
||||
if (IsValid(CurrentVoiceOverAudioComponent)) CurrentVoiceOverAudioComponent->Stop();
|
||||
if (Cast<UDialogueChoiceNode>(CurrentChoiceNode->ChildrenNodes[Choice]))
|
||||
{
|
||||
CurrentChoiceNode = Cast<UDialogueChoiceNode>(CurrentChoiceNode->ChildrenNodes[Choice]);
|
||||
@ -172,7 +172,7 @@ void UAC_PlayerDialogueInterpreter::EndDialogue()
|
||||
CurrentTextNode = nullptr;
|
||||
CurrentAddItemNode = nullptr;
|
||||
CurrentCharacterSpeaking = FDialogueCharacter();
|
||||
CurrentVoiceOverAudioComponent->Stop();
|
||||
if (IsValid(CurrentVoiceOverAudioComponent)) CurrentVoiceOverAudioComponent->Stop();
|
||||
CurrentVoiceOverAudioComponent = nullptr;
|
||||
|
||||
if (APlayerController* PlayerController = GetWorld()->GetFirstPlayerController())
|
||||
|
Loading…
Reference in New Issue
Block a user