// Update is called once per frame void Update() { GazeSelect gaze = GameObject.Find("Camera").GetComponent <GazeSelect>(); // Check if laser or not if (!gaze.cameraMove) { toggle.fillAmount = 0.0f; } else { toggle.fillAmount = 1.0f; } }
// Update is called once per frame void Update() { GazeSelect gaze = GameObject.Find("Main Camera").GetComponent <GazeSelect>(); transform.position = gaze.camPos; }