Example #1
0
 public void ChoiceThree()
 {
     MusicScript.SetMusic(music3);
     Cash.addMoney(-10);
     if (Cash.getMoney() < 0)
     {
         Cash.addMoney(10);
         insufficient.text = "Insufficient Funds";
     }
     cashText.text = "" + Cash.getMoney();
 }
Example #2
0
 // Start is called before the first frame update
 void Start()
 {
     MusicScript.SetMusic(gameObject);
 }