using UnityEngine;
public class DialogueTrigger : MonoBehaviour
{
[SerializeField] private DialogueManager _dialogueManager;
[SerializeField] private DialogueDataSO _dialogueData;
private void OnTriggerEnter(Collider other)
_dialogueManager.DisplayDialogueData(_dialogueData);
}
fileFormatVersion: 2
guid: a814d7fb348840b4891503881ef74030
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant: