InventoryUI.AttachItem C# (CSharp) Méthode

AttachItem() public méthode

public AttachItem ( Item, item, Item, type ) : bool
item Item,
type Item,
Résultat bool
    public bool AttachItem(Item item, Item.Type type)
    {
        bool isAdded = false;
        if (itemListDictionary[type].Count < itemListLength[type]) {
            itemListDictionary[type].Add (item);

            isAdded = true;
        } else {
            // inventory is full
        }

        //		foreach (KeyValuePair<Item.Type, List<Item>> pair in itemListDictionary) {
        //			Debug.Log (pair.Key.ToString () + ":" + pair.Value.Count.ToString ());
        //		}

        return isAdded;
    }