Nearly finished.....
This commit is contained in:
@@ -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