在 cocos2d 中使用哪个 EventDispatcher ?Node::EventDispatcher 还是 Director::EventDispatcher ?参考了 Director 类和 Node 类的官方文档 Director Class Reference Cocos2d-x Node Class Reference Cocos2d-x 有点迷茫,使用和使用有什么区别
Director::getInstance()->getEventDispatcher() // consider this is used inside a class which is derived from Node class
或者
this->getEventDispatcher() // consider this refers to a class derived from Node class