forked from zxl/LaboratoryProtection
18 lines
294 B
C#
18 lines
294 B
C#
|
using System;
|
||
|
using Mono.Event;
|
||
|
using UnityEngine;
|
||
|
|
||
|
class EventComponent : MonoBehaviour
|
||
|
{
|
||
|
private Mono.Event.EventManager _manager= EventManager.Instance;
|
||
|
|
||
|
private void Update()
|
||
|
{
|
||
|
_manager.Update();
|
||
|
}
|
||
|
|
||
|
private void OnDisable()
|
||
|
{
|
||
|
_manager = null;
|
||
|
}
|
||
|
}
|