//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 //	* New Static Method: Update Menu Label
 //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 public static void UpdateMenuLabel()
 {
     if (sm_rInstance != null)
     {
         Button_SettingsMenuToggle bsmt = sm_rInstance.GetComponent <Button_SettingsMenuToggle>();
         if (bsmt != null)
         {
             bsmt.UpdateMenuLabel();
         }
     }
 }
Ejemplo n.º 2
0
    //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    //	* New Method: Update Settings Menu Transition
    //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    private void UpdateSettingsMenuTransition()
    {
        if (m_bFadeinResults)
        {
            if (m_rSettingsMenuAE.UpdateAnimation(m_fRevealAnimationSpeed))
            {
                m_rSettingsMenuAE.Reset();
                m_eTransitionPhase = TransitionPhase.RESULTS_BG;
                VignetteManager.TransitionVignette(m_oVignetteOptions);

                m_rSettingsMenu.GetComponent <Button_ForceSceneObjectDisappear>().enabled = false;                // There's nothing to disable/disappear, Buddy!
                m_rSettingsMenu.gameObject.SetActive(false);
            }
        }
        else
        {
            if (m_rSettingsMenuAE.ReverseUpdate(m_fDisappearAnimationSpeed))
            {
                m_rSettingsMenuAE.Reset();
                OnFadeout();
            }
        }
    }