macOS
- 1 ответ
- 0 вопросов
1
Вклад в тег
- (BOOL)ccTouchBegan:(UITouch *)touch withEvent:(UIEvent *)event {
CGPoint touchLocation = [self convertTouchToNodeSpace:touch];
CCSprite * newCountry = nil;
for (CCSprite *sprite in self.countrySprites) {
if (CGRectContainsPoint(sprite.boundingBox, touchLocation)) {
newCountry = sprite;
break;
}
}