summaryrefslogtreecommitdiff
path: root/Assets/Scripts/Dialogue/DialogueTrigger.cs
blob: 3ca0ae1e54fee712d8ad0f0b068c1ef0bea9bd3a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class DialogueTrigger : MonoBehaviour
{
    public Dialogue dialogue;

    public void TriggerDialogue()
    {
        FindObjectOfType<DialogueManager>().StartDialogue(dialogue);
    }
}