void Start() { fadeScreen.SetActive(false); theCashStore = FindObjectOfType <StoreCash> (); musicGObject = GameObject.FindWithTag("music"); music = musicGObject.GetComponent <AudioSource> (); music.Play(); }
public void GenerateStoreCash() { for (int i = 0; i < _cashisonline; i++) { var storecash = new StoreCash(); _storeCashes.Add(storecash); } }
void Start() { theCashStore = FindObjectOfType <StoreCash> (); getCash(); cashText.text = "" + cashAmmount; }