예제 #1
0
    //Slides out the rctfTransition + unfade the cnvgPanel.
    public static void CloseTransition()
    {
        if (INSTANCE == null)
        {
            return;
        }

        UITween.transitionActive(true);
        UITween.cnvgPanelFade(1, 0.5f);
        AudioManager.PlaySound(9);
        UITween.rctfTransitionSlide(0, 0);
        UITween.gameActive(false);
    }
예제 #2
0
    //Slides out the rctfTransition + unfade the cnvgPanel.
    public static void OpenTransition(byte roomID)
    {
        if (INSTANCE == null)
        {
            return;
        }

        AudioManager.PlaySound(10);
        UITween.rctfTransitionSlide(500f, 0.1f);
        UITween.cnvgPanelFade(0, 1f);
        UITween.transitionActive(false);

        //If the roomID is for menu or credits, don't enable the game UI.
        if (roomID == RoomManager.GetMainMenuIndex() || roomID == RoomManager.GetCreditsIndex())
        {
            return;
        }

        else
        {
            UITween.gameActive(true);
        }
    }