浏览代码

Fixing dialogue error on cutscene end

/main
Amel Negra 3 年前
当前提交
94be6353
共有 2 个文件被更改,包括 11 次插入6 次删除
  1. 8
      UOP1_Project/Assets/Scripts/Cutscenes/CutsceneManager.cs
  2. 9
      UOP1_Project/Assets/Scripts/Dialogues/DialogueManager.cs

8
UOP1_Project/Assets/Scripts/Cutscenes/CutsceneManager.cs


_activePlayableDirector.stopped -= HandleDirectorStopped;
_inputReader.EnableGameplayInput();
_dialogueManager.DialogueEndedAndCloseDialogueUI();
_dialogueManager.CutsceneDialogueEnded();
}
public void LineEnded()
{
_dialogueManager.CutsceneDialogueEnded();
}
private void HandleDirectorStopped(PlayableDirector director) => CutsceneEnded();

9
UOP1_Project/Assets/Scripts/Dialogues/DialogueManager.cs


}
void DialogueEnded()
public void CutsceneDialogueEnded()
if (_endDialogue != null)
_endDialogue.RaiseEvent(_currentDialogue);
_gameState.ResetToPreviousGameState();
if (_closeDialogueUIEvent != null)
_closeDialogueUIEvent.RaiseEvent();
}
public void DialogueEndedAndCloseDialogueUI()
{

正在加载...
取消
保存