Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [System.Serializable]
- public class Money
- {
- public string moneyName;
- public ObscuredInt moneyValue;
- public string saveName;
- public List<Text> moneyText;
- [Header("UI Config")]
- public Color moneyColor;
- public Sprite moneyButtonSprite;
- public Sprite moneyDiamondSprite;
- public void Pay(int value)
- {
- moneyValue -= value;
- ObscuredPrefs.SetInt(saveName, moneyValue);
- UpdateMoneyHUD();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement