<aside> <img src="/icons/reorder_gray.svg" alt="/icons/reorder_gray.svg" width="40px" />
Navigation
</aside>
<aside> 💡 RunCoinsController holds the coins that the player collects during one run. They are credited after the run, together with the distance reward.
</aside>
| Member | Description |
|---|---|
Amount |
Coins that are not credited yet. They are added to the reward after the run. |
DisplayAmount |
Amount plus the credited coins. Shown on the level complete page. |
Add(value) |
Adds coins to the pending total. |
AddCredited(value) |
Counts coins that were credited at the pickup. They are shown on the result page but are not added to the reward again. |
ResetRun() |
Clears both counters. GameController calls it in PrepareRun. |
Amount. The reward credits it after the run.AddCredited. It stays collected forever.// Add a pickup value to the run total
RunCoinsController.Add(5);
The project has two currencies in the Currency Database: Coins and Gems. Coins buy upgrades and modifiers. Gems buy upgrades instantly. See Currency & Gem Prices.