Problema with raycast

I’m lost in a glass of water. To create an Android menu I made a plan with a texture and put the collider to interact to move from one window to another. I made a script for Android so that it detects the touch of a finger. The problem is this: how do I tell the scrip “if the user has pressed start?” or “if the utante pressed options?” This place is the script that I linked to Main Menu camera

#pragma strict

var ciao: GameObject;


function Update () 
{
   //loop through all registered touches
   for (var i = 0; i < Input.touchCount; ++i) 
   {
     if (Input.GetTouch(i).phase == TouchPhase.Began) 
     { 
       var hit : RaycastHit;
       var ray = Camera.main.ScreenPointToRay (
Input.GetTouch(i).position
);
       if (Physics.Raycast (ray, hit, 10000))
       {
          //Destroy(hit.transform.gameObject);
           hit.transform.gameObject.SendMessage("Inizia");
          
       }
       
     }
   }
}

You could check the name of the hit object.

if (hit.collider.name == "the-name-of-the-button-object") {
//here the button function
}

thank you so much, I’m ashamed to have missed in such an error :slight_smile: