public void PickupItem(string item, int value = 0) { switch (item) { case "Bow(Clone)": inventory.SetBowAquired(); break; case "Door Key(Clone)": SetHasDoorKey(true); inventory.SetKeyAquired(); break; case "Chest Key(Clone)": SetHasChestKey(true); break; case "Heart(Clone)": if (!healed) { AddHealth(25); } break; case "Coin(Clone)": Debug.Log(value); cashDisplay.AddMoney(value); break; case "BombItem(Clone)": inventory.SetBombAquired(); inventory.AddBombs(1); break; default: Debug.Log("PickupItem() was called with no/no known item."); break; } }