void Start() { Cursor.visible = false; datapass = GameObject.FindGameObjectWithTag("persistent").GetComponent <SceneData>(); datapass.fromGame = true; datapass.score = 0; datapass.GetComponent <AudioSource>().Pause(); }
void Start() { img = this.GetComponent <Image>(); img.color = Color.black; SceneData datapass = GameObject.FindGameObjectWithTag("persistent").GetComponent <SceneData>(); AudioSource Music = datapass.GetComponent <AudioSource>(); if (!Music.isPlaying) { Music.Play(); } }