public InventoryUI(InventoryScreen inventoryScreen)
 {
     _inventoryScreen = inventoryScreen;
     Menu             = new Menu();
     Menu.AddEntry(new BasicItem(Menu, "Return to game", () => { _inventoryScreen.Close(); })
     {
         Location = new RogueSharp.Point(0, 15)
     });
 }
Beispiel #2
0
 public void Close(GuiScreenType type)
 {
     tabs.SetActive(false);
     activeScreen.Close();
     if (activeScreen == shop)
     {
         inventory.Close();
     }
     activeScreen              = null;
     playerAttack.enabled      = true;
     playerMovement.enabled    = true;
     playerRigidBody.simulated = true;
 }