터치와 클릭의 개념이 살짝 다르므로 몇몇만 수정해주면 그대로 사용가능함.


self.isTouchEnabled = YES;

self.isMouseEnabled = YES;


- (BOOL)ccTouchBegan:(UITouch *)touch withEvent:(UIEvent *)event{

    CGPoint touchLocation = [touch locationInView:[touch view]];

    touchLocation = [[CCDirector sharedDirector] convertToGL:touchLocation];

}


- (BOOL)ccMouseDown:(NSEvent *)event{

    CGPoint touchLocation = [[CCDirector sharedDirector] convertEventToGL:event];

}



Posted by KraZYeom

댓글을 달아 주세요