Similar function to the Input.mousePosition on iPhone

Is there a chance to do this exactly on iPhone?

var particle : GameObject;
function Update () {
if (Input.GetButtonDown (“Fire1”)) {
var ray : Ray = Camera.main.ScreenPointToRay (Input.mousePosition);
if (Physics.Raycast (ray)) {
Instantiate (particle, transform.position, transform.rotation);
}
}
}

function Update () {
	for (var touch : Touch in Input.touches) {
		if (touch.phase == TouchPhase.Began) {
			// Construct a ray from the current touch coordinates
			var ray: Ray = Camera.main.ScreenPointToRay (touch.position);
			var hit: RaycastHit;
			if (Physics.Raycast (ray,hit,1000)) {
				//do something
					
				}
			}
		}
	}
}