下边是代码
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class move : MonoBehaviour
{
public float speed = 2; //[1] 物体移动速度
public Transform[] target; // [2] 目标
public float delta = 0.2f; // 误差值
private static int i = 0;