No sound = reaction : Please help me

Hi, I want to program a music game. Now comes the following condition: the song ends, so you can hear nothing more. Volume remains at 1.0. If there is no sound, so you hear nothing more, should come a reaction, for example, a new Szeene is loaded.

Please help me.

You could do it using AudioClip.length and a coroutine as shown in the manual (see below)[

Unity - Scripting API: AudioClip.length](Unity - Scripting API: AudioClip.length)

Or you can use AudioSource.isPlaying boolean to detect when the sound is no longer playing.