Ejemplo n.º 1
0
    public void OnInterect()
    {
        print("Im a cheast");
        PanelUIControl panelUIControl = FindObjectOfType <PanelUIControl>();

        panelUIControl.SetSubPanels(LeftSlot.PlayerInventoryUI, RightSlot.ChestUI);
        panelUIControl.SetActiveUI(true);
        panelUIControl.SetChestInventory(GetComponent <Inventory>());
    }
Ejemplo n.º 2
0
    public void OnInterect()
    {
        print("Im a CraftTable");
        PanelUIControl panelUIControl = FindObjectOfType <PanelUIControl>();

        panelUIControl.SetSubPanels(LeftSlot.PlayerInventoryUI, RightSlot.FurnaceUI);
        panelUIControl.SetActiveUI(true);
        panelUIControl.SetFurnaceInventory(GetComponent <Inventory>());
    }
Ejemplo n.º 3
0
 override protected void Awake()
 {
     base.Awake();
     panelUIControl = FindObjectOfType <PanelUIControl>();
 }