using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class NewBehaviourScript : MonoBehaviour
{
// 这个脚本是用来让摄像机跟踪目标,并且一直看向目标
public Transform onetarget;//这是飞机的变换组件
public GameObject OnePoint;
public float Movespeed = 1f;
void Update()
{
//this.transform.position = OnePoint.transform.position;
this.transform.position = Vector3.Lerp(this.transform.position, OnePoint.transform.position, Movespeed);
this.transform.LookAt(onetarget);
}
}