Пример #1
0
    protected override void UpdateAllChangedExtendedViewSettings()
    {
        if (!ExtendedViewSettingsForInspector.ShouldDeepEqual(GazeOnlySettings, _lastGazeOnlySettings))
        {
            TobiiGameIntegrationApi.UpdateExtendedViewGazeOnlySettings(GazeOnlySettings.ToExtendedViewSettings());
            _lastGazeOnlySettings = new ExtendedViewSettingsForInspector(GazeOnlySettings.ToExtendedViewSettings());
            if (GazeOnlySettingsUiEventsManager != null)
            {
                GazeOnlySettingsUiEventsManager.FillUiWithCurrentSettings();
            }
        }

        if (!ExtendedViewSettingsForInspector.ShouldDeepEqual(HeadOnlySettings, _lastHeadOnlySettings))
        {
            TobiiGameIntegrationApi.UpdateExtendedViewHeadOnlySettings(HeadOnlySettings.ToExtendedViewSettings());
            _lastHeadOnlySettings = new ExtendedViewSettingsForInspector(HeadOnlySettings.ToExtendedViewSettings());
            if (HeadOnlySettingsUiEventsManager != null)
            {
                HeadOnlySettingsUiEventsManager.FillUiWithCurrentSettings();
            }
        }

        if (!ExtendedViewSettingsForInspector.ShouldDeepEqual(HeadAndGazeSettings, _lastHeadAndGazeSettings))
        {
            TobiiGameIntegrationApi.UpdateExtendedViewSettings(HeadAndGazeSettings.ToExtendedViewSettings());
            _lastHeadAndGazeSettings = new ExtendedViewSettingsForInspector(HeadAndGazeSettings.ToExtendedViewSettings());
            if (HeadAndGazeSettingsUiEventsManager != null)
            {
                HeadAndGazeSettingsUiEventsManager.FillUiWithCurrentSettings();
            }
        }
    }
Пример #2
0
 public void UpdateAllExtendedViewSettings()
 {
     TobiiGameIntegrationApi.UpdateExtendedViewGazeOnlySettings(GazeOnlySettings.ToExtendedViewSettings());
     TobiiGameIntegrationApi.UpdateExtendedViewHeadOnlySettings(HeadOnlySettings.ToExtendedViewSettings());
     TobiiGameIntegrationApi.UpdateExtendedViewSettings(HeadAndGazeSettings.ToExtendedViewSettings());
 }