change camera location to some object

Hi…

i want to ask about main camera, im building apps and in my apps , if i click object1(box collider) i want my camera go to that object1

to put it simple i take some ss…

if i touch the box…

camera position will go to object like this…

how i can do to make this ?

Download and install the iTween library. Its fantastically easy to use and looks ideal for what you need.

The movement would simply be getting the target objects position and moving to it over time.