-- Switch to the next (or previous) view:

function CamLock.SwitchView(reverse)
	if (tweening) then return end
	tweenFromView = currentView
	currentViewIndex = (currentViewIndex + (reverse and -1 or 1))
	currentViewIndex = (currentViewIndex < 1 and #views or currentViewIndex > #views and 1 or currentViewIndex)
	currentView = views[currentViewIndex]
	if (tweenFromView ~= currentView) then
		tweening = true
		tweenStart = tick()
		CamLock.Update = UpdateWithTween
	end
end

