Keep Track of Pointer Click

Hello,

I’m designing a game in Unity using Google Day Dream. I want to keep track of the Player’s answer. For example, I will display multiple answers on the screen, I want to know which one did the player choose and give the feed back at the end of the game.

try with for loop, make new tag for your answers like:answer

hope that will help you.

 public GameObject[] answers;
 void Update()
{

    Ray ray=Camera.main.screenPointToRay(input.mousePosition)
    RaycasHit hit;

    if(input.getMouseButtonDown(0))  // if you want to click with mouse 
  {  if(physics.raycast(ray, out hit,100)
    { 
      if(hit.transform.gameObject.tag=="answer")
     {
        for(int i=0;i<answer.Length;i++)
       {
         if(hit.transform.name==fields*.name)*

{
// there goes code you want to do;
}
}
}
}
}
}