public void BuyItem(int cost) { bool enoughMoney; enoughMoney = pi.DecMoney(cost); if (enoughMoney) { Debug.Log("Item Bought!"); } else { Debug.Log("Insufficient Funds! Item not bought."); } }