我在native专案内 使用 director->getEventDispatcher()->dispatchCustomEvent(“landscape”); 发送事件,
然后在creator中
this.node.on('landscape',function () {
console.log("receive the event of landscape !");
});
this.node.on('portrait',function () {
console.log("receive the event of portrait !");
});
接收事件。
请问我的方式哪里错了,为什么没有看到log呢?