当我尝试通过取消注释下面的函数(如文档建议)来激活触摸移动支持:Cocos3D handleTouch:ofType:不承认
///*
-(void) ccTouchMoved: (UITouch *)touch withEvent: (UIEvent *)event {
[self handleTouch: touch ofType: kCCTouchMoved];
}
//*/
我得到的编译错误:
No visible @interface for 'CC3HelloWorldLayer' declares the selector 'handleTouch:ofType:'
该函数在CC3layer继承的CCLayer.h中声明。
这个奇怪的错误是什么原因造成的?