function playSoundEffect(soundEffect){
    if (global.soundEffectsOn == true){
        soundEffect.play();
    }
}
//only plays sound effect if sound effects are enabled.
only plays sound effect if sound effects are enabled.
only plays sound effect if sound effects are enabled .
function playSoundEffect(soundEffect){
    if (global.soundEffectsOn == true){
        soundEffect.play();
    }
}
function playSoundEffect ( soundEffect ) { if ( global . soundEffectsOn == true ) { soundEffect . play ( ) ; } }
only plays sound effect if sound effects are enabled.
only plays sound effect if sound effects are enabled .