Пример #1
0
        void OnDisable()
        {
            if (!m_PlayModeChanging)
            {
                AnalyticsHelper.TutorialEnded(TutorialConclusion.Quit);
            }

            Criterion.criterionCompleted -= UpdateNextButton;

            ClearTutorialListener();

            Tutorial.tutorialPagesModified                     -= OnTutorialPagesModified;
            TutorialPage.criteriaCompletionStateTested         -= OnTutorialPageCriteriaCompletionStateTested;
            TutorialPage.tutorialPageMaskingSettingsChanged    -= OnTutorialPageMaskingSettingsChanged;
            TutorialPage.tutorialPageNonMaskingSettingsChanged -= OnTutorialPageNonMaskingSettingsChanged;
            GUIViewProxy.positionChanged    -= OnGUIViewPositionChanged;
            HostViewProxy.actualViewChanged -= OnHostViewActualViewChanged;

            videoPlaybackManager.OnDisable();

            ApplyMaskingSettings(false);

            // Play mode might trigger layout change (maximize on play) and closing of this window also.

            if (showTabClosedDialog && !TutorialManager.IsLoadingLayout && !m_PlayModeChanging)
            {
                // Without delayed call the Inspector appears completely black
                EditorApplication.delayCall += delegate
                {
                    EditorUtility.DisplayDialog(k_TabClosedDialogTitle.text, k_TabClosedDialogText.text, k_PromptOk.text);
                };
            }
        }
Пример #2
0
        private void OnTutorialCompleted()
        {
            AnalyticsHelper.TutorialEnded(TutorialConclusion.Completed);
            GenesisHelper.LogTutorialEnded(m_CurrentTutorial.LessonId);

            ExitTutorial(true);
        }
Пример #3
0
        private void OnTutorialCompleted()
        {
            AnalyticsHelper.TutorialEnded(TutorialConclusion.Completed);
            GenesisHelper.LogTutorialEnded(m_CurrentTutorial.LessonId);

            // Open Hub and show tutorials
            HomeWindowProxy.ShowTutorials();
        }
Пример #4
0
        void OnTutorialCompleted(bool exitTutorial)
        {
            if (!currentTutorial)
            {
                return;
            }

            AnalyticsHelper.TutorialEnded(TutorialConclusion.Completed);
            GenesisHelper.LogTutorialEnded(currentTutorial.lessonId);
            MarkTutorialCompleted(currentTutorial.lessonId, currentTutorial.completed);

            if (!exitTutorial)
            {
                return;
            }
            ExitTutorial(currentTutorial.completed);
        }
Пример #5
0
        void OnDisable()
        {
            if (!m_PlayModeChanging)
            {
                AnalyticsHelper.TutorialEnded(TutorialConclusion.Quit);
            }

            ClearTutorialListener();

            Tutorial.tutorialPagesChanged -= OnTutorialPagesChanged;
            TutorialPage.criteriaCompletionStateTested         -= OnTutorialPageCriteriaCompletionStateTested;
            TutorialPage.tutorialPageMaskingSettingsChanged    -= OnTutorialPageMaskingSettingsChanged;
            TutorialPage.tutorialPageNonMaskingSettingsChanged -= OnTutorialPageNonMaskingSettingsChanged;
            GUIViewProxy.positionChanged    -= OnGUIViewPositionChanged;
            HostViewProxy.actualViewChanged -= OnHostViewActualViewChanged;

            ApplyMaskingSettings(false);
        }