Ejemplo n.º 1
0
    public void ExitOperatorMonitor()
    {
        PupilTools.UnSubscribeFrom("pupil.");

        if (!PupilTools.Settings.debugView.active && !pupilTracker.isOperatorMonitor)
        {
            PupilTools.StopFramePublishing();
        }
        pupilTracker.isOperatorMonitor = false;
        PupilTools.Settings.currentCamera.targetDisplay = MainCameraTargetDisplay;
        Destroy(gameObject);
    }
Ejemplo n.º 2
0
    public void CloseCalibrationDebugView()
    {
        var a = (from tr in OffsetTransforms
                 where tr.name == "Debug View Origin Matrix"
                 select tr).FirstOrDefault() as DebugView._Transform;

        if (a.GO != null)
        {
            a.GO.SetActive(false);
        }
        if (!PupilSettings.Instance.debugView.active && !pupilGazeTracker.isOperatorMonitor)
        {
            PupilTools.StopFramePublishing();
        }
        pupilGazeTracker.OnUpdate              -= CalibrationDebugInteraction;
        pupilGazeTracker.OnCalibDebug          -= DrawCalibrationDebugView;
        PupilSettings.Instance.debugView.active = false;
    }