public class Follow : MonoBehaviour {
public GameObject player;
// Update is called once per frame
void Update () {
//this.GetComponent().position=new Vector3()
Vector3 player_postion= player.GetComponent();
this.GetComponent ().position = new Vector3 (player_postion.x, player_postion.y + 8.18f, player_postion.z - 8.31f);
}
}
源码照着您视频来的,但在拖拽到监视面板那我的就没出现,我用的是最新的5.6.2。