예제 #1
0
  public boolean useMoney(int amount) {
    if (money - amount < 0) return false;

    money -= amount;

    ShopLevelController.get().addUseMoneyAmount(amount);

    return true;
  }
예제 #2
0
  public void addMoney(int amount) {
    money += amount;

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