registerWithTouchDispatcherメソッド追加
- (void) registerWithTouchDispatcher { [[[CCDirector sharedDirector] touchDispatcher] addTargetedDelegate:self priority:0 swallowsTouches:YES]; }
ccTouchBeganメソッド追加
- (BOOL)ccTouchBegan:(UITouch *)touch withEvent:(UIEvent *)event { return YES; }
touchEnabled設定
self.touchEnabled = YES;
0 件のコメント:
コメントを投稿