In this example, there is a cube that you can move with arrow keys and the main camera follow the cube where is going. If you want, you can look 360 degrees from all directions by moving with the mouse. Also you can adjust the distance of the camera from the cube.
Used for real time positioning of the LateUpdate camera. Its most common use is for the camera that follows the character after it moves.
In this code, to move the cube X and Z axis that left and right movements.