Esempio n. 1
0
  public boolean useMoney(int amount) {
    if (money - amount < 0) return false;

    money -= amount;

    ShopLevelController.get().addUseMoneyAmount(amount);

    return true;
  }
Esempio n. 2
0
  public void addMoney(int amount) {
    money += amount;

    ShopLevelController.get().addUseMoneyAmount(amount);
  }