12345678910111213141516171819 |
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- public class RouteControl : MonoBehaviour
- {
- public List<TestRoute> list_route;
- public List<Transform> 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);
- }
- }
- }
|