private void Start() { _eyeTracker = EyeTracker.Instance; var box = _CanvasTrackBox.transform.Find("ImageBox"); _box = box.GetComponent <Image>().rectTransform.rect; _mover = box.Find("PanelMover").GetComponent <Image>(); _eyeLeft = _CanvasTrackBox.transform.Find("ImageEyeLeft").GetComponent <Image>(); _eyeRight = _CanvasTrackBox.transform.Find("ImageEyeRight").GetComponent <Image>(); _sliderLeft = _CanvasTrackBox.transform.Find("SliderLeft").GetComponent <Slider>(); _sliderRight = _CanvasTrackBox.transform.Find("SliderRight").GetComponent <Slider>(); _eyeScaleLeft = _eyeLeft.rectTransform.localScale; _eyeScaleRight = _eyeRight.rectTransform.localScale; _colorMoverGood = new Color32(0, 100, 0, 100); _colorMoverBad = new Color32(100, 0, 0, 100); _colorEyeGood = new Color32(200, 255, 200, 255); _colorEyeBad = new Color32(255, 200, 200, 255); TrackBoxGuideActive = _trackBoxGuideActive; }
private void Start() { _eyeTracker = EyeTracker.Instance; _gazeTrail = GazeTrail.Instance; }
protected override void OnStart() { base.OnStart(); _eyeTracker = EyeTracker.Instance; _calibrationObject = Calibration.Instance; }
private void Start() { _eyeTracker = EyeTracker.Instance; }