Install via UPM
Add to Unity Package Manager using this URL
https://www.pkglnk.dev/track/playercurrency.git README
Player Currency
An easy to setup in game currency manager.
It uses the PersistentDataSystem to load and save data.
Usage
Call the PlayerCurrencyManager to get or add virtual currency amount to your players.
Each currency has its own unique string identifier, we advise you to include it in a list as it's shown in the GameQuest sample. By default, the tool will use CurrencyList.txt as the data list.
Retrieve the currency amount the player has
int playerGoldAmount = PlayerCurrencyManager.Instance.GetCurrencyCount("gold");
Add a certain amount of currency to the player
PlayerCurrencyManager.Instance.AddToCurrency("gold", 500);
The currency is protected to prevent going below 0.
Advanced - Money conversion
It contains a conversion system to allow you creating multiple conversion between virtual currencies (used in general as In App Purchases).

int coinAmount = PlayerCurrencyManager.Instance.GetConvertedCurrency(50, "gems", "coins");
In this case, coinAmount equals 500.
Total Installs
0
Last 30 daysUnique IPs
0
Approximate usersInstalls Over Time
Operating Systems
No data yet
Top Countries
No data yet
Git Versions
No data yet
Embed Install Badge
Add an install count badge to your README
Markdown
[](https://www.pkglnk.dev/pkg/playercurrency)HTML
<a href="https://www.pkglnk.dev/pkg/playercurrency"><img src="https://www.pkglnk.dev/badge/playercurrency.svg?style=pkglnk" alt="pkglnk installs"></a>
No comments yet. Be the first!