mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-10 15:53:19 +00:00
15 lines
362 B
C#
15 lines
362 B
C#
using UnityEngine;
|
|
|
|
namespace QSB.Utility
|
|
{
|
|
public delegate void EnableDisableEvent();
|
|
|
|
public class OnEnableDisableTracker : MonoBehaviour
|
|
{
|
|
public event EnableDisableEvent OnEnableEvent;
|
|
public event EnableDisableEvent OnDisableEvent;
|
|
|
|
private void OnEnable() => OnEnableEvent?.Invoke();
|
|
private void OnDisable() => OnDisableEvent?.Invoke();
|
|
}
|
|
} |