using Sirenix.OdinInspector; using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.Events; public class DetectTriggerComponent : MonoBehaviour { public UnityEvent onTriggerEnter; public UnityEvent onTriggerExit; private void OnTriggerEnter(Collider other) { onTriggerEnter?.Invoke(other); } private void OnTriggerExit(Collider other) { onTriggerExit?.Invoke(other); } }