示例#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);
        }