public void PurchaseItem(ShopSlot slot) { //Take this away from the players gold //slot.price if (!slot.empty && PartyManager.instance.gold >= slot.price) { PartyManager.instance.gold -= slot.price; slot.HideStats(); InventoryManager.Instance.AddItem(slot.item); slot.RemoveItem(); } }