public void addBankEntry(BankEntry entry) { if (entry.getAmount() < 0 || entry.getAmount() > 0) //omit 0 entries? { bankEntryList.Add(entry); } if (entry.getAmount() > highestAmountCollectedInAGame) { if (entry.isFromReward() == false) { highestAmountCollectedInAGame = entry.getAmount(); } } if (entry.getAmount() > 0) { totalMoneyEarned += entry.getAmount(); } balance += entry.getAmount(); }
public void Setup(BankEntry item, Sprite sprite) { price.text = formatCurrencyString(item.getAmount()); iconImage.sprite = sprite; descText.text = item.getDescription(); }