How do i add currency on game start?
I get all my currency from Cloud and i would like to keep track of them one place.
So i want to inject the value in game start into UIS.
I get all my currency from Cloud and i would like to keep track of them one place.
So i want to inject the value in game start into UIS.
C#:
//Get the dollar currency from the database.
var dollars = InventorySystemManager.GetCurrency("Dollars");
//create a variable holding 50$.
var fiftyDollars1 = new CurrencyAmount(50, dollars);
//You can use this shortcut if you find it easier to read.
var fiftyDollars2 = (50, dollars);