Now clear event bus on destroyed

This commit is contained in:
Kirigaya Kazuto 2018-03-06 16:12:16 +08:00
parent 2c5bc2f649
commit 2065bb9892

View File

@ -373,6 +373,8 @@ function DestroyEventBus(t)
for k,v in pairs(t.listeners) do
RemoveEventListener(v)
end
t.listeners={}
t.events={}
end
function CreateEventBus()