function ServerGame.onLeave(r,i,j,t)for r,i in pairs(connections)do i:Disconnect()end RoomManager.resetRooms()end return ServerGame
--[[
	Function called when leaving the state
]]
function ServerGame.onLeave(stateMachine, event, from, to)
	for _, connection in pairs(connections) do
		connection:Disconnect()
	end

	RoomManager.resetRooms()
end

return ServerGame
