-- ================================================================================
-- LOCAL FUNCTIONS
-- ================================================================================

local function statusChanged()
	local raceStatus = RaceManager:GetRaceStatus()
	GameStatus.Text = raceStatus
	
	-- Hide GUI when round is in session and player is a speeder
	if raceStatus == RaceManager.Status.RoundInProgress then
		StatusBar.Visible = false
	else
		StatusBar.Visible = true
	end
end -- statusChanged()