Beispiel #1
0
    void Update()
    {
        if (Input.GetKeyDown(KeyCode.I) && !Paused)
        {
            inventory.SetActive(true);
            Paused         = true;
            Time.timeScale = 0.0f;
        }

        else if ((Input.GetKeyDown(KeyCode.I) && Paused) || close)
        {
            info.ClearText();
            inv.CloseOptions();
            inventory.SetActive(false);
            Paused         = false;
            Time.timeScale = 1.0f;
            close          = false;
        }
    }
Beispiel #2
0
 /// <summary>
 /// Clear the list item information on display.
 /// </summary>
 public void ClearItemInfo()
 {
     itemInfoPanel.ClearText();
 }