Exemplo n.º 1
0
 // Update is called once per frame
 void Update()
 {
     if (Input.GetMouseButtonDown(0) || Input.touchCount > 0)
     {
         Ray        ray = Camera.main.ScreenPointToRay(Input.mousePosition);
         RaycastHit hit;
         if (Physics.Raycast(ray, out hit))
         {
             //Select Stage
             if (hit.transform.name == "SofaMesh")
             {
                 //Debug.Log("tag : " + hit.transform.name);
                 hover.MoveUP();
                 hover.HoverVariable = true;
                 UI_Handler.UI_TickButtonAppear();
             }
             else
             {
             }
         }
     }
     //this script should be on the object that it is manipulating
 }