cocos2d_随手篇1_关于ccTouchBegan的调用
在新的cocos框架里,旧的调用ccTouchBegan方法被和谐掉了!so!
直接来代码
1 |
-( void )doSometing{ |
2 |
[[[CCDirector sharedDirector] touchDispatcher] addTargetedDelegate:self priority:0 swallowsTouches:YES]; |
3 |
} |
在新的cocos框架里,旧的调用ccTouchBegan方法被和谐掉了!so!
直接来代码
1 |
-( void )doSometing{ |
2 |
[[[CCDirector sharedDirector] touchDispatcher] addTargetedDelegate:self priority:0 swallowsTouches:YES]; |
3 |
} |