Obesity is also more complicated than just sugar. I can only go by personal anecdote here but I struggle with weight issues despite not eating much junk or overly processed food. A sugar tax would affect actual foods but not be sufficient nor even useful toward improving health