4 namespace HKI.Core.Triggers
12 [Header(
"Callbacks on enter:")]
13 [SerializeField] UnityEvent OnEnter =
new UnityEvent();
15 [Header(
"Callbacks on exit:")]
16 [SerializeField] UnityEvent OnExit =
new UnityEvent();
This trigger will invoke added functions on enter and exit.
void OnTriggerEnter(Collider collider)
void OnTriggerExit(Collider collider)