This commit is contained in:
ALEXTANGXIAO
2024-12-02 23:51:53 +08:00
parent 0679d924c1
commit 0dc572f43e
2 changed files with 8 additions and 1 deletions

View File

@@ -13,6 +13,13 @@ namespace TEngine
/// </summary>
private static readonly Dictionary<int, EventDelegateData> _eventTable = new Dictionary<int, EventDelegateData>();
/// <summary>
/// 清空事件表。
/// </summary>
internal void ClearEventTable()
{
_eventTable.Clear();
}
#region
/// <summary>

View File

@@ -77,7 +77,7 @@ namespace TEngine
public void Init()
{
_eventEntryMap.Clear();
Dispatcher = new EventDispatcher();
Dispatcher.ClearEventTable();
}
}
}