Isoulated/Assets/Tools/DialogueSystem/DialogueTrigger.cs
Gerard Gascón 001bb14f16 init
2025-04-24 17:19:36 +02:00

13 lines
347 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class DialogueTrigger : MonoBehaviour{
public Dialogue dialogue;
/// <summary> Start the dialogue specified on the inspector </summary>
public void TriggerDialogue(){
FindObjectOfType<DialogueSystem>().StartDialogue(dialogue);
}
}