public boolean useMoney(int amount) { if (money - amount < 0) return false; money -= amount; ShopLevelController.get().addUseMoneyAmount(amount); return true; }
public void addMoney(int amount) { money += amount; ShopLevelController.get().addUseMoneyAmount(amount); }