В последнее время я задавал много вопросов, извините. Я получаю сообщение об ошибке, когда появляется & lt.cocos2D & lt не работает
-(void) SpritesDidCollide {
CCNode *player = [self getChildByTag:kTagPlayer];
CCNode *computer = [self getChildByTag:kTagComputer];
float xDif = computer.position.x - player.position.x;
float yDif = computer.position.y - player.position.y;
float distance = sqrt(xDif * xDif + yDif * yDif);
if (distance < 45;) { //--------------------Right Here-------------------
[self unschedule:@selector(SpritesDidCollide)];
[[CCDirector sharedDirector] replaceScene:[CCTransitionFade transitionWithDuration:1 scene:[GameOver node]]];
}
}
меньше, чем '<'; меньше или равно '<=' – 0xDE4E15B
Я пробовал эти, ни один из них не работает, я получаю больше ошибок ... – AaronChapmanDev
Действительно ?! if (расстояние <45) – 0xDE4E15B