Resource system
ResourceObject coins; // scriptable object which represents coins in this example
coins.LoadPrefs(); // init value from player prefs
int currentCoins = coins.GetResource(); // getting current coins amountLast updated
ResourceObject coins; // scriptable object which represents coins in this example
coins.LoadPrefs(); // init value from player prefs
int currentCoins = coins.GetResource(); // getting current coins amountLast updated