3
공 위치가 블록 위치와 정확히 같고 앵커 포인트가 동일한 경우이 함수가 GameEnd 함수를 실행하지 않는 이유를 알아 내려고합니다. 좌표 true를 반환 절대적 동일해야하므로CGPointEqualToPoint와 함께 작동하지 않는 경우
는if (CGPointEqualToPoint(ball.position,block.position)) {
if (CGPointEqualToPoint(ball.anchorPoint,monster1.anchorPoint)) {
[self theGameEnd];
}
}
요구 사항을 알려주시겠습니까 –
위치 시도보기 –
디버깅을하셨습니까? – Wain