예제 #1
0
    // 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();
        }
    }
예제 #2
0
 public void InvOpen()
 {
     UI_MenuItem.SetActive(true);
     UI_Inventory.SetActive(true);
 }
예제 #3
0
 public void AllOff()
 {
     UI_Inventory.SetActive(false);
     UI_MenuItem.SetActive(false);
     UI_Discover.SetActive(false);
 }