Ios touch object

Hello guys!
I’m new and I hope to be in the right section to its request for a little help.

Can anyone help me make a script?!
specifically, that when I touch an object in one scene from the iPhone’s touch screen or IPAD
I party a certain level of the game otherwise you touch another part of me to another level.

For example.
If I touch the left cube, load level level 1
if I touch the right cube, load level level 2

sorry for my english but i’m italian!!! :-/

There is a script already in the script reference which will help you do this.

http://unity3d.com/support/documentation/ScriptReference/Input.GetTouch.html


// Shoot a ray whenever the user taps on the screen
var particle : GameObject;
function Update () {
for (var i = 0; i < Input.touchCount; ++i) {
if (Input.GetTouch(i).phase == TouchPhase.Began) {
// Construct a ray from the current touch coordinates
var ray = Camera.main.ScreenPointToRay (Input.GetTouch(i).position);
if (Physics.Raycast (ray)) {
// Create a particle if hit
Instantiate (particle, transform.position, transform.rotation);
}
}
}
}

Now here is the code that is changed by me to fit your purpose.

var LeftCube : GameObject;
var RightCube : GameObject;
function Update () {
for (var i = 0; i < Input.touchCount; ++i) {
if (Input.GetTouch(i).phase == TouchPhase.Began) {
// Construct a ray from the current touch coordinates
var ray = Camera.main.ScreenPointToRay (Input.GetTouch(i).position);
if (Physics.Raycast (ray, hit, 200)))
{
if (hit.collider == LeftCube.collider)
}
Application.LoadLevel(“level 1”);
}
if (hit.collider == RightCube.collider)
{
Application.LoadLevel(“level 2”);
}
}
}
}
}