//相机跟随
float posX = transform.position.x;
Camera.main.transform.position = Vector3.Lerp(Camera.main.transform.position, new Vector3(Mathf.Clamp(posX, 2, 15),
Camera.main.transform.position.y, Camera.main.transform.position.z), smooth * Time.deltaTime);