public void OnInterect() { print("Im a cheast"); PanelUIControl panelUIControl = FindObjectOfType <PanelUIControl>(); panelUIControl.SetSubPanels(LeftSlot.PlayerInventoryUI, RightSlot.ChestUI); panelUIControl.SetActiveUI(true); panelUIControl.SetChestInventory(GetComponent <Inventory>()); }
public void OnInterect() { print("Im a CraftTable"); PanelUIControl panelUIControl = FindObjectOfType <PanelUIControl>(); panelUIControl.SetSubPanels(LeftSlot.PlayerInventoryUI, RightSlot.FurnaceUI); panelUIControl.SetActiveUI(true); panelUIControl.SetFurnaceInventory(GetComponent <Inventory>()); }