,代码如下:Рusing System.Collections;Рusing System.Collections.Generic;Рusing UnityEngine;Рpublic class Pin : MonoBehaviour {Р public float speed = 5;Р private bool isFly = false;Р private bool isReach = false;Р private Transform startPoint;Р private Vector3 targetCirclePos;Р private Transform circle;Р?// Use this for initializationР?void Start () {Р startPoint = GameObject.Find("StartPoint").transform;Р circle = GameObject.Find("Circle").transform;Р targetCirclePos = circle.position;Р targetCirclePos.y -= 1.47f;Р?}// Update is called once per frameР?void Update () {Р if (isFly == false)Р {Р if (isReach == false)Р {Р transform.position = Vector3.MoveTowards(transform.position, startPoint.position, speed * Time.deltaTime);Р if( Vector3.Distance( transform.position,startPoint.position )<0.05f)Р {