// 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(); } } }
public void CloseInventory() { InventoryClosed?.Invoke(); }
private void OnBackButtonClicked() { InventoryClosed?.Invoke(); }