예제 #1
0
    //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    //	* New Method: Fadeout Tutorial
    //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    protected IEnumerator FadeoutTutorial()
    {
        // Fade out Tutorial BGM
        AudioSourceManager.FadeoutAudio(m_oAudioHandlerInfo);

        // Disappear/Fadeout Tutorial TextBox
        m_rTextBoxTransitionEffect.UnlockNoteObject();
        m_rTextBoxTransitionEffect.Disappear(false);
        while (m_rTextBoxTransitionEffect.IsCurrentlyActive)
        {
            yield return(new WaitForEndOfFrame());
        }

        // Fadeout Vignette. Only if nothing else is already Transitioning it~
        if (!VignetteManager.IsTransitioning)
        {
            if (VignetteManager.CurrentColour.a > 0.05f)
            {
                float transitionTime = 0.5f;
                VignetteManager.TransitionVignette(0.0f, transitionTime);
                while (VignetteManager.IsTransitioning)
                {
                    yield return(new WaitForEndOfFrame());
                }
            }
        }

        this.gameObject.SetActive(false);
    }
예제 #2
0
    //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    //	* New Method: Hide Subscene
    //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    public void HideSubscene()
    {
        AudioSourceManager.FadeoutAudio(m_oSubsceneAudioHandler);

        if (!TutorialManager_Base.TutorialOpened)
        {
            VignetteManager.TransitionVignette(0.0f, m_oVignetteInfo.transitionTime, m_oVignetteInfo.orderInLayer);
        }

        if (m_rCurrentSceneObject != null)
        {
            m_rCurrentSceneObject.Disappear(false);
        }

        IsSceneActive = false;
        if (GameManager.CurrentSubscene == this)
        {
            GameManager.CurrentSubscene = null;
        }
    }
예제 #3
0
 //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 //	* New Method: Stop Backing Track
 //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 public void StopBackingTrack()
 {
     AudioSourceManager.FadeoutAudio(m_oChallengeBackingTrackInfo);
 }