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;
}