using UnityEngine.EventSystems;                     
...
void Update() {
   if (Input.GetMouseButtonDown(0) &&    
      !EventSystem.current.IsPointerOverGameObject()) {   
   Vector3 point = new Vector3(
      camera.pixelWidth/2, camera.pixelHeight/2, 0);
   ...
