摘要:
CCLayer是不接收触屏事件的,需要我们手动开启触摸事件; self.isTouchEnabled=YES;针对触屏事件,有两个协议;[CCStandardTouchDelegate 和CCTargetedTouchDelegate]CCLayer默认实现CCStandardTouchDelegate协议;CCStandardTouchDelegate协议包含如下方法:-(void)ccTouchesBegan:(NSSet *)touches withEvent:(UIEvent *)event;-(void)ccTouchesMoved:(NSSet *)touches w... 阅读全文