The rise of obesity in the US tracks very closely with the massive increase in cheese & chicken consumption. Sugar consumption actually plateaued years earlier.
I doubt you’d be able to stomach enough tofu to gain weight eating that alone. You’d have to eat 10 cups a day just to hit a maintenance level of about 2000 calories.
It would be a lot easier on fatty cuts of beef at 330 calories for 100g.