// Update is called once per frame void Update() { if (!initialized) { return; } //if (!playing && queue.Count > 0) //{ // StartPlaying(); //} stateManager.GetComponent <AudioSource>().enabled = !playing; }