//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ // * New Method: On Fadeout //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ private void OnFadeout() { m_eTransitionPhase = TransitionPhase.IDLE; ButtonManager.ToggleAllButtons(true); if (m_eExitSelection == ExitSelection.EXIT) { // Do Something when "Maybe Later" (Do not purchase full game) is clicked? if (m_rPreviousScene != null) { if (m_rPreviousScene.IsSceneActive) { m_rPreviousScene.ShowSceneVignette(); } else { m_rPreviousScene.ShowSubscene(); } } else { VignetteManager.TransitionVignette(0.0f, 0.25f); } if (m_rPreviousNotePage != null) { m_rPreviousNotePage.Reveal(); } } else { // Open URL Confirmation Window (Purchase Full Game) m_rOpenURLConfirmationWindow.OpenConfirmationWindow(Button_OpenURL.URLType.APPLE_OR_ANDROID, m_asFullGameAndroidURL[(int)GameManager.DisplayableLanguages], m_asFullGameAppleURL[(int)GameManager.DisplayableLanguages], m_oURLConfirmationDescription, m_rPreviousScene, m_rPreviousNotePage); } }
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ // * New Callback Method: Exit Tutorial Via Button //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ public virtual void OnExitTutorialViaButton() { ExitTutorial(); if (m_rOwningSubscene != null && m_rOwningSubscene.IsSceneActive) { m_rOwningSubscene.PlaySceneBGM(); m_rOwningSubscene.ShowSceneVignette(); } }
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ // * Derived Method: On Trigger //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ protected override void OnTrigger() { base.OnTrigger(); // Run Parental GATE on Android/iOS Devices! #if !UNITY_EDITOR && UNITY_IOS Floop.FloopManager.Instance.ShowParentalGate((success) => { if (success) { #endif // If URL is to be used for both devices, use it: if (m_eType == URLType.APPLE_AND_ANDROID) { if (URL != "") { Application.OpenURL(URL); } } // Otherwise open the appropriate URL else { #if UNITY_ANDROID if (androidURL != "") { Application.OpenURL(androidURL); } #else if (URL != "") { Application.OpenURL(URL); } #endif } #if !UNITY_EDITOR && UNITY_IOS } else { } }); #endif if (m_rOwningPage != null) { m_rOwningPage.Disappear(false); } // Show Previous Scene/Note if (m_rPreviousScene != null) { if (m_rPreviousScene.IsSceneActive) { m_rPreviousScene.ShowSceneVignette(); } else { m_rPreviousScene.ShowSubscene(); } } if (m_rPreviousNotePage != null) { m_rPreviousNotePage.Reveal(false); } // Hide vignette since no one will take ownership~! if (m_rPreviousScene == null) { VignetteManager.TransitionVignette(0.0f, 0.25f); } }