Esempio n. 1
0
    private void Update()
    {
        if (SceneCommon.Instance.IsLoadingScene)
        {
            return;
        }

        if (m_GlobalMenu == null)
        {
            m_GlobalMenu = GlobalMenu.Create(MenuType, mainCamera);
            m_GlobalMenu.Show();
        }
    }
Esempio n. 2
0
    /// <summary>
    /// グローバルメニュー開く
    /// </summary>
    public void OnOpenGlobalMenu(GLOBALMENU_SEQ _seq = GLOBALMENU_SEQ.TOP_MENU)
    {
        if (!CheckSwitchRequest())
        {
            return;
        }

        SoundUtil.PlaySE(SEID.SE_MENU_OK);

        var tag = "HeaderOpenGlobalMenu";

        ButtonBlocker.Instance.Block(tag);

        if (globalMenu == null)
        {
            globalMenu = GlobalMenu.Create(GLOBALMENU_TYPE.MAIN_MENU, SceneObjReferMainMenu.Instance.m_MainMenuGroupCamera.GetComponent <Camera>());
            if (_seq == GLOBALMENU_SEQ.TOP_MENU)
            {
                globalMenu.Show(() =>
                {
                    ButtonBlocker.Instance.Unblock(tag);
                });
            }
            else
            {
                globalMenu.ShowPage(_seq, () =>
                {
                    ButtonBlocker.Instance.Unblock(tag);
                });
            }

            if (MainMenuManager.HasInstance)
            {
                MainMenuManager.Instance.SetMenuFooterActive(false);
            }
        }
        else
        {
            globalMenu.Hide(() =>
            {
                ButtonBlocker.Instance.Unblock(tag);
            });
            globalMenu = null;
            if (MainMenuManager.HasInstance)
            {
                MainMenuManager.Instance.SetMenuFooterActive(true);
            }
        }
    }