// Create the inventory panel public void CreateInventoryPanel(string inTitle) { PanelController panelController = GameController.Instance.panelController; if (inventoryPanel) { panelController.RemovePanel(inventoryPanel); } inventoryPanel = panelController.AddPanel(PanelType.Inventory, inTitle); ((InventoryManager)inventoryPanel).InitContainerPanel(this); }