dispatcher =
cc.Director:getInstance():getEventDispatcher()
local cusListener =
cc.EventListenerCustom:create(“hello”,
function(event)
print(“cusEventListener happen”)
end)
hello =
cc.EventCustom:new(“hello”)
hello.name = “hello”
dispatcher:addEventListenerWithSceneGraphPriority(cusListener,self)
dispatcher:dispatchEvent(
hello)
麻烦大大指点下,谢谢。是哪里写错了?