If camera is following this object, follow this other object

but if the camera is following the other object, follow the original object … how do i do it???

was using this

cameraswaptimer -= Time.deltaTime;
if (cameraswaptimer < 0.01)
{

if (followTarget = theplayer)
{
followTarget = theplayer2;
cameraswaptimer = 30;
}else
{
followTarget = theplayer;
cameraswaptimer = 30;
}
}

but it only follows player2 after the timer, and never goes back to the original player