Beispiel #1
0
    void Hide()
    {
        GuiManager.FadeIn();

        if (Game.Instance.GameType != E_GameType.Survival)
        {
            DefaultSpriteUI.HideSprite(GuiShopBackgroundTop.Instance.Sprite);
            DefaultSpriteUI.HideSprite(GuiShopBackgroundMiddle.Instance.Sprite);
            DefaultSpriteUI.HideSprite(GuiShopBackgroundBottom.Instance.Sprite);

            DefaultSpriteUI.HideSprite(GuiShopBackgroundTopTop.Instance.Sprite);
            DefaultSpriteUI.HideSprite(GuiShopBackgroundTopMiddle.Instance.Sprite);
            DefaultSpriteUI.HideSprite(GuiShopBackgroundTopBottom.Instance.Sprite);
        }

        DefaultSpriteUI.HideSprite(GuiShopBackgroundMiddleTop.Instance.Sprite);
        DefaultSpriteUI.HideSprite(GuiShopBackgroundMiddleMiddle.Instance.Sprite);
        DefaultSpriteUI.HideSprite(GuiShopBackgroundMiddleBottom.Instance.Sprite);

        DefaultSpriteUI.HideSprite(GuiShopBackgroundDownTop.Instance.Sprite);
        DefaultSpriteUI.HideSprite(GuiShopBackgroundDownMiddle.Instance.Sprite);
        DefaultSpriteUI.HideSprite(GuiShopBackgroundDownBottom.Instance.Sprite);

        if (Game.Instance.GameType != E_GameType.Survival)
        {
            DefaultSpriteUI.HideSprite(GuiShopKarmaCaption.Instance.Sprite);
        }

        DefaultSpriteUI.HideSprite(GuiShopComboCaption.Instance.Sprite);

        DefaultSpriteUI.HideSprite(GuiShopButtonOk.Instance.Sprite);
        DefaultSpriteUI.HideSprite(GuiShopButtonBack.Instance.Sprite);

        ButtonHealth.Hide();
        ButtonSword.Hide();
        BuyScreen.Hide();

        for (int i = 0; i < ButtonCombo.Length; i++)
        {
            ButtonCombo[i].Hide();
        }

        if (Game.Instance.GameType != E_GameType.Survival)
        {
            for (int i = 0; i < Karma.Sprites.Length; i++)
            {
                DefaultSpriteUI.HideSprite(Karma.Sprites[i]);
            }
        }
    }
Beispiel #2
0
    public void Hide(bool resume = true)
    {
        DefaultSpriteUI.HideSprite(GuiInGameMenu.SpriteControls);
        DefaultSpriteUI.HideSprite(GuiInGameMenu.SpriteResume);
        DefaultSpriteUI.HideSprite(GuiInGameMenu.SpriteQuit);
        DefaultSpriteUI.HideSprite(GuiInGameMenu.SpriteControlsCancel);
        DefaultSpriteUI.HideSprite(GuiInGameMenu.SpriteControlsReset);
        DefaultSpriteUI.HideSprite(GuiInGameMenu.SpriteControlsOk);
        DefaultSpriteUI.HideSprite(GuiInGameMenu.SpriteControlsBackground);

        Time.timeScale          = 1;
        Game.Instance.GameState = E_GameState.Game;

        if (resume)
        {
            GuiManager.FadeIn();
        }

        IsOn = false;
    }