function Registry.removeObject(u,e)for R,p in pairs(u.objects)do if e==p then u:remove(R)return end end end

function Registry:removeObject(object)
	for key, _object in pairs(self.objects) do
		if object == _object then
			self:remove(key)
			return
		end
	end
end
