// Update is called once per frame void Update() { if (Input.GetKeyDown(KeyCode.B)) { backpack.OpenClose(); } else if (Input.GetKeyDown(KeyCode.Q)) { questLog.OpenClose(); } else if (Input.GetKeyDown(KeyCode.C)) { characterPanel.OpenClose(); } else if (Input.GetKeyDown(KeyCode.Tab)) { if (Controls_textbox.active) { Controls_textbox.SetActive(false); } else { Controls_textbox.SetActive(true); } } }
// Update is called once per frame void Update() { //if (Input.GetKeyDown(KeyCode.M)) // OpenClose(keybindMenu); if (Input.GetKeyDown(KeyCode.P)) { OpenClose(spellBook); } if (Input.GetKeyDown(KeyCode.B)) { InventoryScript.MyInstance.OpenClose(); } if (Input.GetKeyDown(KeyCode.C)) { charPanel.OpenClose(); } }
// Update is called once per frame void Update() { //Pause if (Input.GetKeyDown(KeybindManager.MyInstance.Keybinds["Pause"])) { if (pause) { Resume(pauseMenu); } else { Pause(pauseMenu); } } //Quest log if (Input.GetKeyDown(KeybindManager.MyInstance.Keybinds["Questlog"])) { OpenClose(menus[4]); } //Skill book if (Input.GetKeyDown(KeybindManager.MyInstance.Keybinds["Skillbook"])) { OpenClose(menus[3]); } //Inventory if (Input.GetKeyDown(KeybindManager.MyInstance.Keybinds["Inventory"])) { InventoryScript.MyInstance.OpenClose(); } //Character Panel if (Input.GetKeyDown(KeybindManager.MyInstance.Keybinds["Character"])) { charPanel.OpenClose(); } }
// Update is called once per frame void Update() { if (Input.GetKeyDown(KeybindManager.MyInstance.Keybinds["KEYBIND"])) { OpenClose(keybindMenu); Time.timeScale = Time.timeScale > 0 ? 0 : 1; } if (Input.GetKeyDown(KeybindManager.MyInstance.Keybinds["SPELLBOOK"])) { OpenClose(spellBook); Time.timeScale = Time.timeScale > 0 ? 0 : 1; } if (Input.GetKeyDown(KeybindManager.MyInstance.Keybinds["BAGS"])) { InventoryScript.MyInstance.OpenClose(); } if (Input.GetKeyDown(KeybindManager.MyInstance.Keybinds["CHAR"])) { charPanel.OpenClose(); } }
// Update is called once per frame void Update() { if (Input.GetKeyDown(KeyCode.Escape)) { OpenClose(keyBindMenu); } if (Input.GetKeyDown(KeyCode.P)) { OpenClose(spellBook); } if (Input.GetKeyDown(KeyCode.B)) { InventotyScript.MyInstance.OpenClose(); } if (Input.GetKeyDown(KeyCode.C)) { characterPanel.OpenClose(); } }