// Use this for initialization void Start() { foreach (StringIntKVP _item in _items) { Item.AcquireItem(_item.Key, _item.Value); } }
public void PickUpItem(InvenItem _item) { if (_item.Global) { Item.AcquireItem(_item.ItemName, _item.Amount); } else { if (_items.ContainsKey(_item.ItemName)) { _items[_item.ItemName] += _item.Amount; } else { _items[_item.ItemName] = _item.Amount; } } _item.PickUp(); }