var nguiTouched: boolean = false;
function Update ()
{
if(!nguiTouched)
{
if(Input.touchCount > 0) //if the user presses the screen...
{
var touch: Touch = Input.touches[0];
touchTime += Time.deltaTime; //to avoid accidental presses
**if(needInitialTouchLoc) //get the loc of the initial touch position **
**{ **
** initialTouchLoc = Input.GetTouch(0).position; **
** needInitialTouchLoc = false; **
** print("initialTouchLoc: " + initialTouchLoc); **
**} **
if(other parameters)
{
do other stuff....
}
}
}
}