Esempio n. 1
0
    // Update is called once per frame
    void Update()
    {
        if (Input.GetKeyDown(GameSetting.openBagWnd)) //背包
        {
            bagWnd.SwitchShowAndHide();
            dialog.Hide();
        }
        if (Input.GetKeyDown(GameSetting.openCraftWnd)) //制造
        {
            craftWnd.SwitchShowAndHide();
            dialog.Hide();
        }
        if (Input.GetKeyDown(GameSetting.openEquipWnd)) //装备
        {
            equipWnd.SwitchShowAndHide();
            dialog.Hide();
        }


        if (Input.GetKeyDown(GameSetting.openConsole)) //控制台
        {
            if (GameSetting.enableConsole == true)
            {
                console.SwitchShowAndHide();
                dialog.Hide();
            }
        }

        if (Input.GetKeyDown(KeyCode.Escape))
        { //close all windows
            HideAllWnd();
            dialog.Hide();
        }

        if (Input.GetKeyDown(KeyCode.F3))
        {
            ShowStore(null);
            dialog.Hide();
        }

        UpdateCursor(); //更新鼠标外观
    }
 private void HideCurrentDialog()
 {
     _uiDialog.Hide();
 }
Esempio n. 3
0
 public void CloseMenu()
 {
     uIDialog.Hide();
 }