第一种
跟随
private Vector3 offset;
private Transform player;
void Awake()
{
player = GameObject.FindWithTag("player").transform;
}
void Start () {
offset = player.position - transform.position;
}
void Update () {
第一种
跟随
private Vector3 offset;
private Transform player;
void Awake()
{
player = GameObject.FindWithTag("player").transform;
}
void Start () {
offset = player.position - transform.position;
}
void Update () {