肯定是错误的anyTouchEndedThisFrame
我现在已经尝试过所有事情,它只会在我移动手指时计算结束的触摸,如果我在同一个位置触摸并松开它不会计算它,如果我错了请纠正我
-(void) moveObjectToNewPosition:(KKInput *)input
{
if (input.anyTouchEndedThisFrame) {
[self touchesEnded:[input locationOfAnyTouchInPhase:KKTouchPhaseAny]];
} if (input.anyTouchBeganThisFrame) {
[self touchesBegan:[input locationOfAnyTouchInPhase:KKTouchPhaseBegan]];
}