17 lines
338 B
C#
17 lines
338 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class vEnableDisableEvent : MonoBehaviour
|
|
{
|
|
public UnityEngine.Events.UnityEvent onEnable, onDisable;
|
|
private void OnEnable()
|
|
{
|
|
onEnable.Invoke();
|
|
}
|
|
private void OnDisable()
|
|
{
|
|
onDisable.Invoke();
|
|
}
|
|
}
|