public void RaiseEvent(DialogueLineSO line) { if (OnEventRaised != null) { OnEventRaised.Invoke(line); } }
/// <summary> /// Displays a line of dialogue in the UI, by requesting it to the <c>DialogueManager</c>. /// This function is also called by <c>DialogueBehaviour</c> from clips on Timeline during cutscenes. /// </summary> /// <param name="dialogueLine"></param> public void DisplayDialogueLine(DialogueLineSO dialogueLine) { //TODO: Interface with a UIManager to allow displayal of the line of dialogue in the UI //Debug.Log("A line of dialogue has been spoken: \"" + dialogueLine.Sentence + "\" by " + dialogueLine.Actor.ActorName); if (dialogueLineEvent != null) { dialogueLineEvent.OnEventRaised(dialogueLine); } }
public void SetDialogue(DialogueLineSO dialogueLine) { lineText.StringReference = dialogueLine.Sentence; actorNameText.StringReference = dialogueLine.Actor.ActorName; }
/// <summary> /// Called to begin a dialogue, i.e. a sequence of lines that require the player's input to move forward. /// </summary> /// <param name="firstLine"></param> public void BeginDialogue(DialogueLineSO firstLine) { _inputReader.EnableDialogueInput(); DisplayDialogueLine(firstLine); }
/// <summary> /// Called to begin a dialogue, i.e. a sequence of lines that require the player's input to move forward. /// </summary> /// <param name="firstLine"></param> public void BeginDialogue(DialogueLineSO firstLine) { _inputReader.gameInput.Dialogues.Enable(); DisplayDialogueLine(firstLine); }
public void PlayDialogueFromClip(DialogueLineSO dialogueLine) { _dialogueManager.DisplayDialogueLine(dialogueLine); }
public void OpenUIDialogue(DialogueLineSO dialogueLine) { dialogueController.SetDialogue(dialogueLine); dialogueController.gameObject.SetActive(true); }
/// <summary> /// Displays a line of dialogue in the UI, by requesting it to the <c>DialogueManager</c>. /// This function is also called by <c>DialogueBehaviour</c> from clips on Timeline during cutscenes. /// </summary> /// <param name="dialogueLine"></param> public void DisplayDialogueLine(DialogueLineSO dialogueLine) { //TODO: Interface with a UIManager to allow displayal of the line of dialogue in the UI //Debug.Log("A line of dialogue has been spoken: \"" + dialogueLine.Sentence + "\" by " + dialogueLine.Actor.ActorName); UIManager.Instance.OpenUIDialogue(dialogueLine); }