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