public void SellItem(Item item) { Player.AddGold(item.data.value / 2); item.data.amount--; if (item.data.amount == 0) { if (Player.Inventory.Contains(item)) { Player.Inventory.Remove(item); } if (Player.Equipment.Contains(item)) { Player.Equipment.Remove(item); } Player.Instance.UnwearItem(item); Destroy(item.gameObject); } SoundDatabase.PlayCoinSound(); }