在init方法中 this->setTouchEnabeld(true); 但是点击屏幕 不会掉用void GameLayer::onTouchesEnded(Touch *touch, Event *unused_event) 这个方法,在头文件中方法已经声明过了。。。setTouchEnabeld这个属性 Xcode提示是被废弃的!!!请问如何让回调函数执行。。。
在线等,各路神仙帮帮忙
onTouchesBegan里要返回true就可以了。
在init方法中 this->setTouchEnabeld(true); 但是点击屏幕 不会掉用void GameLayer::onTouchesEnded(Touch *touch, Event *unused_event) 这个方法,在头文件中方法已经声明过了。。。setTouchEnabeld这个属性 Xcode提示是被废弃的!!!请问如何让回调函数执行。。。
在线等,各路神仙帮帮忙
onTouchesBegan里要返回true就可以了。