예제 #1
0
 private void KeyDown()
 {
     if (Input.GetKeyDown(showInventory))
     {
         cellContainer.SetActive(!cellContainer.activeSelf);
     }
     if (Input.GetKeyDown(collectItems))
     {
         сollectableItems.Control();
     }
 }
예제 #2
0
 private void KeyDown()
 {
     if (Input.GetKeyDown(showInventory))
     {
         if (cellContainer.activeSelf)
         {
             cellContainer.SetActive(false);
         }
         else
         {
             cellContainer.SetActive(true);
         }
     }
     if (Input.GetKeyDown(collectItems))
     {
         collectableItems.Control();
     }
 }