20 lines
516 B
C#
20 lines
516 B
C#
![]() |
using System.Collections;
|
||
|
using System.Collections.Generic;
|
||
|
using UnityEngine;
|
||
|
using PixelCrushers;
|
||
|
using UnityEngine.Events;
|
||
|
public class TriggerEventHelper : MonoBehaviour
|
||
|
{
|
||
|
public UnityEvent onTriggerEnterEvent;
|
||
|
public void OnTriggerEnterCalled()
|
||
|
{
|
||
|
onTriggerEnterEvent?.Invoke();
|
||
|
ActivatorManager.Instance.TimeLineEvents.Add(onTriggerEnterEvent);
|
||
|
}
|
||
|
public UnityEvent onTriggerExitEvent;
|
||
|
public void OnTriggerExitCalled()
|
||
|
{
|
||
|
onTriggerExitEvent?.Invoke();
|
||
|
}
|
||
|
}
|