EventManager Fixed
This commit is contained in:
parent
84e34e84fd
commit
334eafb8c7
|
@ -34,7 +34,7 @@ namespace FirstVillain.Event
|
|||
if (_delegateDict.TryGetValue(type, out EventDelegate tempDelegate))
|
||||
{
|
||||
tempDelegate -= targetDelegate;
|
||||
if (tempDelegate.GetInvocationList().Length == 0)
|
||||
if (tempDelegate == null)
|
||||
{
|
||||
_delegateDict.Remove(type);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user