using System.Collections; using System.Collections.Generic; using UnityEngine; public class RouteControl : MonoBehaviour { public List list_route; public List list_point; private void Start() { for (int i = 0; i < list_route.Count; i++) { list_route[i].SetRoute(list_point[i].position, list_point[i + 1].position); //list_route[i].gameObject.SetActive(true); } } }