我在 scene1 的onexit的函数中调用了,Director::getInstance()->getEventDispatcher()->removeAllEventListeners(); 切换到scene2后,scene2中的menu全都不能点击了。
后来我又在scene1的onenter中调用了 该函数,scene1中的menu也不能用了。
是不是所有的事件回调都到了dispatcher中了?
我在 scene1 的onexit的函数中调用了,Director::getInstance()->getEventDispatcher()->removeAllEventListeners(); 切换到scene2后,scene2中的menu全都不能点击了。
后来我又在scene1的onenter中调用了 该函数,scene1中的menu也不能用了。
是不是所有的事件回调都到了dispatcher中了?