Nearly finished.....
This commit is contained in:
@@ -45,8 +45,9 @@ namespace Scampz.GameJam
|
||||
EndDialogue();
|
||||
}
|
||||
|
||||
public void StartDialogue(Dialogue dialogue)
|
||||
public void StartDialogue(Dialogue dialogue, TextMeshProUGUI textMeshProUGUI)
|
||||
{
|
||||
_dialogueTextGUI = textMeshProUGUI;
|
||||
_animator.SetBool("IsOpen", true);
|
||||
IsTalking = true;
|
||||
sentences.Clear();
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
using TMPro;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Scampz.GameJam
|
||||
@@ -5,10 +6,12 @@ namespace Scampz.GameJam
|
||||
public class DialogueTrigger : MonoBehaviour
|
||||
{
|
||||
public Dialogue dialogue;
|
||||
[SerializeField]
|
||||
private TextMeshProUGUI _dialogueTextGUI;
|
||||
|
||||
public void TriggerDialogue()
|
||||
{
|
||||
DialogueManager.Instance.StartDialogue(dialogue);
|
||||
DialogueManager.Instance.StartDialogue(dialogue, _dialogueTextGUI);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user