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); }; } }
private void OnTutorialCompleted() { AnalyticsHelper.TutorialEnded(TutorialConclusion.Completed); GenesisHelper.LogTutorialEnded(m_CurrentTutorial.LessonId); ExitTutorial(true); }
private void OnTutorialCompleted() { AnalyticsHelper.TutorialEnded(TutorialConclusion.Completed); GenesisHelper.LogTutorialEnded(m_CurrentTutorial.LessonId); // Open Hub and show tutorials HomeWindowProxy.ShowTutorials(); }
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); }
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); }