In Unity sometimes we want to move our characters in a endless background, such as
Flappy Bird. Such game required infinite loop of scene.
One of the solutions comes to mind is moving the camera along with the background. To achieve this is quite simple, the whole idea is to
attach the background to your main camera:. The following example shows you how to do this:
For the main camera, create a script named
CameraFollow with the below code
CameraFollow C# Script