From 87ce9cceddd08af1579b3b74451ca0754627e0ec Mon Sep 17 00:00:00 2001 From: wangguan <wangguan@kt007.com> Date: Fri, 13 Nov 2020 10:22:18 +0800 Subject: [PATCH] 结束页面动效完毕后才能关闭 Loading页面重置所有事件 --- Assets/Scripts/Event/EventBase.cs | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/Assets/Scripts/Event/EventBase.cs b/Assets/Scripts/Event/EventBase.cs index 693d8a7..ddef090 100644 --- a/Assets/Scripts/Event/EventBase.cs +++ b/Assets/Scripts/Event/EventBase.cs @@ -18,6 +18,9 @@ //存放各种事件的字典 protected Dictionary<int, Delegate> m_EventTable = new Dictionary<int, Delegate>(); + public void RemoveAllListener(){ + m_EventTable = new Dictionary<int, Delegate>(); + } #region 私有方法 private void OnListenerAdding(int eventType, Delegate callback) -- Gitblit v1.9.1