コード例 #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();
         }
     }
 }
コード例 #2
0
 public void CloseInventory()
 {
     InventoryClosed?.Invoke();
 }
コード例 #3
0
 private void OnBackButtonClicked()
 {
     InventoryClosed?.Invoke();
 }