diff --git a/Runtime/Base/Event/EventListenerProxy.cs b/Runtime/Base/Event/EventListenerProxy.cs deleted file mode 100644 index 3d8b788..0000000 --- a/Runtime/Base/Event/EventListenerProxy.cs +++ /dev/null @@ -1,56 +0,0 @@ -using System; -using System.Collections.Generic; - -namespace AlicizaX.Runtime -{ - /// - /// 游戏事件管理器。 - /// - public class EventListenerProxy : IReference - { - private readonly bool _isInit = false; - private readonly List> clearHandlers; - private readonly List actionCallBack; - - /// - /// 游戏事件管理器构造函数。 - /// - public EventListenerProxy() - { - if (_isInit) - { - return; - } - _isInit = true; - clearHandlers = new List>(); - actionCallBack = new List(); - } - - /// - /// 清理内存对象回收入池。 - /// - public void Clear() - { - if (!_isInit) - { - return; - } - - for (int i = 0; i < clearHandlers.Count; ++i) - { - var clearAction = clearHandlers[i]; - var handle = actionCallBack[i]; - clearAction(handle); - } - - clearHandlers.Clear(); - actionCallBack.Clear(); - } - - public void AddEventImp(Action handler,Delegate action) - { - clearHandlers.Add(handler); - actionCallBack.Add(action); - } - } -} diff --git a/Runtime/Base/Event/EventListenerProxy.cs.meta b/Runtime/Base/Event/EventListenerProxy.cs.meta deleted file mode 100644 index ddcd802..0000000 --- a/Runtime/Base/Event/EventListenerProxy.cs.meta +++ /dev/null @@ -1,3 +0,0 @@ -fileFormatVersion: 2 -guid: eb346bc3be28f89468e2c071e7ab9594 -timeCreated: 1680273952 \ No newline at end of file diff --git a/Runtime/Base/Event/IEventListenerProxy.cs b/Runtime/Base/Event/IEventListenerProxy.cs deleted file mode 100644 index b10858c..0000000 --- a/Runtime/Base/Event/IEventListenerProxy.cs +++ /dev/null @@ -1,7 +0,0 @@ -namespace AlicizaX.Runtime -{ - public interface IEventListenerProxy - { - public EventListenerProxy EventListener { get; } - } -} diff --git a/Runtime/Base/Event/IEventListenerProxy.cs.meta b/Runtime/Base/Event/IEventListenerProxy.cs.meta deleted file mode 100644 index a3b5b2d..0000000 --- a/Runtime/Base/Event/IEventListenerProxy.cs.meta +++ /dev/null @@ -1,3 +0,0 @@ -fileFormatVersion: 2 -guid: 4798c5e2685443cd96fc39a7dc5e9df3 -timeCreated: 1730786771 \ No newline at end of file