void GetMovePos() { Ray ray = cam.ScreenPointToRay(Input.mousePosition); RaycastHit hit; if (Physics.Raycast(ray, out hit, 100, layerMask)) { // Move the player //Debug.Log(hit.collider.name + " " + hit.point); moveController.MoveToPoint(hit.point); // De-focus objects } }