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

18 lines
294 B
C#
Raw Normal View History

2023-09-13 09:28:54 +08:00
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;
}
}