Esempio n. 1
0
 private void Update()
 {
     if (Input.GetMouseButtonDown(0))
     {
         RaycastHit hit;
         Ray ray = Camera.main.ScreenPointToRay(Input.mousePosition);
         Physics.Raycast(ray, out hit);
         if (hit.collider != null)
         {
             handleHit(hit);
         }
     }
     if (Input.GetMouseButtonDown(1))
     {
         atomManager.handleAtomDeselection();
     }
 }