1
0
Fork 0
LaboratoryProtection/Assets/UnityTest/ZXL/Scripts/Event/EventComponent.cs

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;
}
}