if(iPhoneInput.touchCount > 0)
{
iPhoneTouch touch = iPhoneInput.touches[0];
ray = gState.world.nGUICamera.ScreenPointToRay(touch.position);
if (Physics.Raycast(ray, out hit, Mathf.Infinity, LayerMask.NameToLayer("UI")) && (
touch.phase == iPhoneTouchPhase.Ended || touch.phase == iPhoneTouchPhase.Canceled
|| touch.phase == iPhoneTouchPhase.Began))
{
Debug.Log("IN CANCLE MODE");
CancelTouchMode();
return;
}
}
and down some where in update i do
if(iPhoneInput.touchCount==1 )
{
SingleTouchAction();
}