Esempio n. 1
0
 // Update is called once per frame
 void Update()
 {
     if (Input.GetKeyUp(KeyCode.Tab))
     {
         if (InventoryContainer.activeSelf)
         {
             InventoryContainer.SetActive(false);
             InventoryClosed.Invoke();
         }
         else
         {
             InventoryContainer.SetActive(true);
             InventoryOpened.Invoke();
         }
     }
 }
Esempio n. 2
0
 public void CloseInventory()
 {
     InventoryClosed?.Invoke();
 }
Esempio n. 3
0
 private void OnBackButtonClicked()
 {
     InventoryClosed?.Invoke();
 }