Hi,
I'm trying to get a double tap on a GUI on the iPhone, what I want is a single tap to zoom in and a double tap to change the view, but using the below code it always print out "single tap" before going to "double tap" any help would be great.
function Update(){
for (var touch : Touch in Input.touches){
if (gui03.HitTest (touch.position)){
if(touch.tapCount == 2){
print("double tap");
return;
}else if(touch.tapCount == 1){
print("single tap");
}
}
}
}
↧