local function A()local A=math.floor(timer.Value/60)local O=math.floor(timer.Value%60)if O>=10 then textLabel.Text=tostring(A)..("\058"..tostring(O))else textLabel.Text=tostring(A)..("\058\048"..tostring(O))end local V=RaceManager:GetRaceStatus()if V==RaceManager.Status.Countdown and TopBar.Enabled then if O==0 then CountdownEndBeep:Play()else CountdownBeep:Play()end end end
-- ================================================================================
-- LOCAL FUNCTIONS
-- ================================================================================
local function updateTimer()
	local minutes = math.floor(timer.Value / 60)
	local seconds = math.floor(timer.Value % 60)

	if seconds >= 10 then
		textLabel.Text = tostring(minutes) .. ":" .. tostring(seconds)
	else
		textLabel.Text = tostring(minutes) .. ":0" .. tostring(seconds)
	end

	local raceStatus = RaceManager:GetRaceStatus()
	if raceStatus == RaceManager.Status.Countdown and TopBar.Enabled then
		if seconds == 0 then
			CountdownEndBeep:Play()
		else
			CountdownBeep:Play()
		end
	end
end -- updateTimer()
