function Controller:ListenEvent(key, tag, callback)
self.listenEventList[key] = self.listenEventList[key] or {}
self.listenEventList[key][tag] = callback
end
function Controller:UpdateListenEvent(key)
if not self.listenEventList[key] then return end
for tag, callback in pair(self.listenEventList[key]) do
if callback then
callback()
end
end
end
function Controller:UpdateListenEvent(key, para)
if not self.listenEventList[key] then return end
for tag, callback in pair(self.listenEventList[key]) do
if callback then
callback(unpack(para or {}))
end
end
end