When I click the start button repeatedly, the music plays multiple times, how can I make it play only once

https://www.babylonjs-playground.com/#BCU1XR#3868

            if(!sound.isPlaying) {
                sound.play()
            }

Example - https://www.babylonjs-playground.com/#BCU1XR#3869

2 Likes