center camera on object that is right clicked

is there any easy way in doing this?

There is some code in this thread which explains how to use raycasting to detect which scene object is under the mouse. You can get the status of the right mouse button with Input.GetMouseButton and use transform.LookAt on the camera to point it at the target object.