예제 #1
0
    private void Update()
    {
        if (m_Ready)
        {
            if (Input.GetButtonDown(m_Inputs[0]))
            {
                m_PlayerMenu.SubmitCheck();
            }

            if (Input.GetButtonDown(m_Inputs[2]))
            {
                PlayerCommit(false);
            }
        }

        if (m_Selecting)
        {
            CharacterSelect();
        }

        if (!m_Selecting && !m_Ready)
        {
            if (Input.GetButtonDown(m_Inputs[0]))
            {
                SelectionEnable();
            }
            if (Input.GetButtonDown(m_Inputs[2]))
            {
                m_PlayerMenu.Back();
            }
        }
    }
    private void MenuInput()
    {
        if (Input.GetKeyDown(KeyCode.M) || Input.GetButtonDown("Start"))
        {
            pMenu.OpenClosePlayerMenu();
        }

        if (Input.GetKeyDown(KeyCode.I))
        {
            pInv.OpenCloseInventory();
        }

        if (Input.GetKeyDown(KeyCode.Escape))
        {
            pMenu.CloseAllWindows();
        }

        if (Input.GetButtonDown("BButton"))
        {
            pMenu.Back();
        }
    }