MoneyCounter

Overview

Displays the current money using thousands separators and a trailing $. Color is pale gold for values > 0, red otherwise. A prediction path exists but is currently not wired.

Serialized

  • FloatVariable currentMoney
  • FloatEvent moneyPrediction (unused/commented)

Behavior

  • Start() → cache TMP, register currentMoney.Changed → UpdateText, call UpdateText once.
  • UpdateText(value) → display N0$ using InvariantCulture and set color based on sign.
  • OnDestroy() → unregister.