// Update is called once per frame void Update() { if (beats.SongPlaying()) { Time.timeScale = 1f; gameObject.SetActive(false); } }