function onSoundDied()sDied:Play()end function onState(E,u)if E then u:Play()else u:Pause()end end function onSoundRunning(E)if E>0 then sRunning:Play()else sRunning:Pause()end end
-- functions

function onSoundDied()
	sDied:Play()
end

function onState(state, sound)
	if state then
		sound:Play()
	else
		sound:Pause()
	end
end

function onSoundRunning(speed)
	if speed > 0 then
		sRunning:Play()
	else
		sRunning:Pause()
	end
end
