How to "zoom in" camera when in a certain area (top down game)

Add box collision to the building and:

Image from Gyazo

If you need the transition to be smooth, interpolate the float value on tick / use a timeline instead.


Also, consider inheritance at this point; something like this should probably be in the parent class, you may not want to duplicate the script for 100s of buildings manually.