public void Purchase() { if (!purchased) { money.SubMoney(price); purchased = true; Debug.Log("bought"); GiveItem(); } }