Advertisement
Guest User

Untitled

a guest
Mar 5th, 2017
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.46 KB | None | 0 0
  1. [System.Serializable]
  2. public class Money
  3. {
  4.     public string moneyName;
  5.     public ObscuredInt moneyValue;
  6.     public string saveName;
  7.     public List<Text> moneyText;
  8.  
  9.     [Header("UI Config")]
  10.     public Color moneyColor;
  11.     public Sprite moneyButtonSprite;
  12.     public Sprite moneyDiamondSprite;
  13.  
  14.     public void Pay(int value)
  15.     {
  16.         moneyValue -= value;
  17.         ObscuredPrefs.SetInt(saveName, moneyValue);
  18.         UpdateMoneyHUD();
  19.     }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement