Ok so this is the part of the script I’m working on that tells whether a GUITexture has been tapped just once or if it was double tapped, the problem is, is that I’m getting an error message telling me that I need a semicolon at the end of the line that is bolded, but I clearly have one there, I tried restarting you Unity but nothing. Is there something wrong with my script? Thanks.
function Update(){
for (var i = 0; i < iPhoneInput.touchCount; i++){
var touch : iPhoneTouch = iPhoneInput.touches[i];
[B]var touched : iPhoneInput.GetTouch(i);[/B]
var FBHit = FB.HitTest(touch.position);
if(touch.phase == iPhoneTouchPhase.Ended){
if(touched.tapCount < 1){
DoubleTap = true;
SingleTap = false;
}
else{
SingleTap = true;
}
}