void OpenInventoryScreen() { _inputReader.menuPauseEvent -= OpenUIPause; // player cant open the UI Pause again when they are in inventory _inputReader.menuUnpauseEvent -= CloseUIPause; // player can close the UI Pause popup when they are in inventory _inputReader.menuCloseEvent += CloseInventoryScreen; _inputReader.closeInventoryEvent += CloseInventoryScreen; if (isForCooking) { _inventoryPanel.FillInventory(InventoryTabType.Recipe, true); } else { _inventoryPanel.FillInventory(); } _inventoryPanel.gameObject.SetActive(true); _switchTabDisplay.SetActive(true); _inputReader.EnableMenuInput(); _gameStateManager.UpdateGameState(GameState.Inventory); }