diff options
| author | Andrew Lee <alee14498@protonmail.com> | 2020-08-24 00:14:06 -0400 |
|---|---|---|
| committer | Andrew Lee <alee14498@protonmail.com> | 2020-08-24 00:14:06 -0400 |
| commit | 581eb102d540bc495ec62dae25fcea0d676d1a59 (patch) | |
| tree | 898078c2580819b953ad7696779269827667e853 /Assets/Scripts/Dialogue/DialogueTrigger.cs | |
| parent | 4c192cebf7af6c271b8a8a9b10616c85ab2856dd (diff) | |
| download | Project-Sandbox-581eb102d540bc495ec62dae25fcea0d676d1a59.tar.gz Project-Sandbox-581eb102d540bc495ec62dae25fcea0d676d1a59.tar.bz2 Project-Sandbox-581eb102d540bc495ec62dae25fcea0d676d1a59.zip | |
Dialogue; Unlock cursor
Diffstat (limited to 'Assets/Scripts/Dialogue/DialogueTrigger.cs')
| -rw-r--r-- | Assets/Scripts/Dialogue/DialogueTrigger.cs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Assets/Scripts/Dialogue/DialogueTrigger.cs b/Assets/Scripts/Dialogue/DialogueTrigger.cs new file mode 100644 index 0000000..3ca0ae1 --- /dev/null +++ b/Assets/Scripts/Dialogue/DialogueTrigger.cs @@ -0,0 +1,13 @@ +using System.Collections;
+using System.Collections.Generic;
+using UnityEngine;
+
+public class DialogueTrigger : MonoBehaviour
+{
+ public Dialogue dialogue;
+
+ public void TriggerDialogue()
+ {
+ FindObjectOfType<DialogueManager>().StartDialogue(dialogue);
+ }
+}
|
