<aside> <img src="/icons/reorder_gray.svg" alt="/icons/reorder_gray.svg" width="40px" />

Navigation

</aside>

🏠 Home Page

Getting Started

Architecture

Level System

Characters & Vehicles

Run Mechanics

World Objects

Boosters & Modifiers

Progression & Economy

UI

Save & Debugging

Modules

Publishing

Reference

💰 Monetization (Ads & IAP)

<aside> 💡 RunCoinsController holds the coins that the player collects during one run. They are credited after the run, together with the distance reward.

</aside>

Subsystems

Counters

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.

Rules

Example

// Add a pickup value to the run total
RunCoinsController.Add(5);

Currencies

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.