0

私は今すべてについて試しましたが、バグがあるに違いありません。anyTouchEndedThisFrame指を動かした場合にのみ終了したタッチを認識します。同じ場所でタッチして離した場合、それは認識されません。間違っている場合はお願いします私を訂正してください

-(void) moveObjectToNewPosition:(KKInput *)input
{
    if (input.anyTouchEndedThisFrame) {
        [self touchesEnded:[input locationOfAnyTouchInPhase:KKTouchPhaseAny]];

    } if (input.anyTouchBeganThisFrame) {
        [self touchesBegan:[input locationOfAnyTouchInPhase:KKTouchPhaseBegan]];
    }
4

1 に答える 1