Exemplo n.º 1
0
 public void OnSubmitSlot(ItemSlot slot)
 {
     if (itemPicker != null)
     {
         currentSelectedSlot = slot as EquipSlot;
         itemPicker.gameObject.SetActive(true);
         itemPicker.CreateEquipmentWindow(inventory.items, currentSelectedSlot.itemType, slot.item, OnPickItem);
     }
 }
    public void OnEnable()
    {
        if (inventory == null)
        {
            inventory = GetComponentInParent <Inventory>();
        }

        if (inventory && itemWindow)
        {
            itemWindow.CreateEquipmentWindow(inventory.items, OnSubmit, OnSelectSlot);
        }
    }