Пример #1
0
 public void ClickGameExit(int soundID)
 {
     AudioManager.PlaySound(soundID);
     UITween.gameActive(true);
     UITween.rctfMapSlide(-500f, 0f);
     UITween.gameSlideIn();
     UITween.optionsActive(false);
     GameManager.SetPlayerPause(false);
 }
Пример #2
0
 //Loads the room based on roomID.
 public void ClickButtonRoom(int roomID)
 {
     AudioManager.PlaySound(7);
     UITween.gameActive(true);
     UITween.levelsSlideOut();
     UITween.gameSlideIn();
     UITween.levelsActive(false);
     RoomManager.LoadRoom(roomID);
 }
Пример #3
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);
    }
Пример #4
0
    public static void TriggerWarrant()
    {
        UITween.optionsActive(true);
        UITween.warrantSectionActive(true);

        UITween.btnSoundsActive(false);
        UITween.optionsMenuActive(false);
        UITween.helpSectionActive(false);
        UITween.optionsLevelsActive(false);
        UITween.optionsGameActive(false);

        UITween.gameSlideOut();
        UITween.rctfMapSlide(0, 1);
        UITween.gameActive(false);
        GameManager.SetPlayerPause(true);
    }
Пример #5
0
    public void ClickGameMiniMap()
    {
        AudioManager.PlaySound(7);
        UITween.optionsActive(true);
        UITween.optionsGameActive(true);
        UITween.btnSoundsActive(true);

        UITween.optionsMenuActive(false);
        UITween.helpSectionActive(false);
        UITween.optionsLevelsActive(false);
        UITween.warrantSectionActive(false);

        UITween.gameSlideOut();
        UITween.rctfMapSlide(0, 1);
        UITween.gameActive(false);
        GameManager.SetPlayerPause(true);
    }
Пример #6
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);
        }
    }