// Update is called once per frame void Update() { if (Input.GetKeyDown(KeyCode.I)) { UI_MenuItem.SetActive(!UI_MenuItem.activeSelf); UI_Inventory.SetActive(!UI_Inventory.activeSelf); } if (Input.GetKeyDown(KeyCode.J)) { UI_MenuItem.SetActive(!UI_MenuItem.activeSelf); UI_Discover.SetActive(!UI_Discover.activeSelf); } if (Input.GetKeyDown(KeyCode.Tab)) { UI_MenuItem.SetActive(!UI_MenuItem.activeSelf); } if (Input.GetKeyDown(KeyCode.Escape)) { AllOff(); } }
public void InvOpen() { UI_MenuItem.SetActive(true); UI_Inventory.SetActive(true); }
public void AllOff() { UI_Inventory.SetActive(false); UI_MenuItem.SetActive(false); UI_Discover.SetActive(false); }