Example #1
0
 public void addItem(string type, int amount)
 {
     if (items.ContainsKey(type))
     {
         current_amount = items[type];
     }
     items[type] = current_amount + amount;
     Debug.Log("Added: " + type + " of amount: " + amount.ToString());
     ui_hotbar.SetQuantity(type, items[type]);
 }