先上代码 using System.Collections; using System.Collections.Generic; using UnityEngine; public class CameraFollow : MonoBehaviour { //摄像机与主角的直线距离 ; //横向角度 ; //纵向角度 / ; //目标物体 public GameObject target; //横向旋转速度 public float rotSpeed = 0.2f; //纵向旋转速度 publi