I'm struggling with this, as the title suggests, I'm trying to get the main camera to follow a prefab that is instantiated in a 2D game along the x axis - from left to right. The prefab is spawned after the player fires it (Angry Birds style), so the position of the projectile just needs adding to the position of the camera.

All the scripts/code I've seen so far only seem to work with game objects that are within the scene already, not instantiated prefabs.

I'm still new to Unity and I'm using C#, thanks for any help!