public void UseBomb(GameManager game) { if (inventory.Contains("Bomb")) { state.PlaceItem(); sound1.BombD(0); state.spawnBomb(game, sound1); Bombs = Bombs - 1; if (Bombs <= 0) { inventory.Remove("Bomb"); selectedItem = ""; } } }