private void closeDisplay(bool disposeContainer) { gameObject.SetActive(false); foreach (LootSlot slot in slots) { if (slot.item != null) { slot.item.gameObject.SetActive(false); } slot.takeItem(); } if (disposeContainer) { container.hideDrop(); } else { container.updateDisapear(); } StarSystem.setGamePause(false); UserInterface.showInterface = true; }