今天使用Sneakyinput开源框架做虚拟操作杆的时候,导入文件报错Cannot find protocol declaration for CCTargetTouchDelegate/CCStandardTouch,查询各种资料终于知道在cocos2d 2.1中协议明变了
CCTargetedTouchDelegate -> CCTouchOneByOneDelegate
CCStandardTouchDelegate -> CCTouchAllAtOnceDelegate
本文介绍在使用Sneakyinput开源框架进行虚拟操作杆开发时遇到的Cocos2d2.1协议变更问题。文章详细解释了CCTargetedTouchDelegate与CCStandardTouchDelegate两个协议在新版本中分别更改为CCTouchOneByOneDelegate与CCTouchAllAtOnceDelegate。
今天使用Sneakyinput开源框架做虚拟操作杆的时候,导入文件报错Cannot find protocol declaration for CCTargetTouchDelegate/CCStandardTouch,查询各种资料终于知道在cocos2d 2.1中协议明变了
CCTargetedTouchDelegate -> CCTouchOneByOneDelegate
CCStandardTouchDelegate -> CCTouchAllAtOnceDelegate

被折叠的 条评论
为什么被折叠?