Unclaimed Package Is this your package? Claim it to unlock full analytics and manage your listing.
Claim This Package

Install via UPM

Add to Unity Package Manager using this URL

https://www.pkglnk.dev/track/playercurrency.git

README

openupm

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).

Money Conversion data

int coinAmount = PlayerCurrencyManager.Instance.GetConvertedCurrency(50, "gems", "coins");

In this case, coinAmount equals 500.

Total Installs
0
Last 30 days
Unique IPs
0
Approximate users

Installs 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

Style
Preview
pkglnk installs badge
Markdown
[![pkglnk installs](https://www.pkglnk.dev/badge/playercurrency.svg?style=pkglnk)](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>

Comments

No comments yet. Be the first!