示例#1
0
    static bool OpenMenu(E_MenuState state)
    {
        if (CanChangeToState(state) == false)
        {
            return(false);
        }

        GuiMenu menu = m_Instance.SetState(state);

        if (menu == null)
        {
            return(false);
        }

        m_Instance.UpdateHudVisibility(false);

        if (menu.IsInitialized == false)
        {
            menu.InitMenu(m_Instance);
        }

        menu.ShowMenu();

        return(true);
    }
示例#2
0
    static bool OpenMenu(E_MenuState state)
    {
        GuiMenu menu = PrepareMenu(state);

        if (menu == null)
        {
            return(false);
        }

        if (menu.IsInitialized == false)
        {
            menu.InitMenu(m_Instance);
        }

        menu.ShowMenu();

        return(true);
    }
示例#3
0
    void LateUpdate()
    {
        if (CurrentState == E_MenuState.Loading)
        {
            return;
        }
        if (--m_HACK_FrameCount > 0)
        {
            return;
        }

        // open loading menu
        GuiMenu menu = SetState(E_MenuState.Loading);

        if (menu != null)
        {
            if (menu.IsInitialized == false)
            {
                menu.InitMenu(this);
            }

            menu.ShowMenu();
        }
    }