private void Update()
{
float limit_X_min = -1000f; //Лимит
float limit_X_max = 1000f; //Лимит
float camera_X = privezat_k.transform.position.x;
if (camera_X < limit_X_min) camera_X = limit_X_min;
if (camera_X > limit_X_max) camera_X = limit_X_max;
transform.position = new Vector3(camera_X, 0f, -10f);
}