init
This commit is contained in:
commit
102013b228
1443 changed files with 1065651 additions and 0 deletions
13
Assets/Scripts/Tools/DialogueSystem/DialogueTrigger.cs
Normal file
13
Assets/Scripts/Tools/DialogueSystem/DialogueTrigger.cs
Normal file
|
@ -0,0 +1,13 @@
|
|||
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);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue