RouteControl.cs 458 B

12345678910111213141516171819
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. public class RouteControl : MonoBehaviour
  5. {
  6. public List<TestRoute> list_route;
  7. public List<Transform> list_point;
  8. private void Start()
  9. {
  10. for (int i = 0; i < list_route.Count; i++)
  11. {
  12. list_route[i].SetRoute(list_point[i].position, list_point[i + 1].position);
  13. //list_route[i].gameObject.SetActive(true);
  14. }
  15. }
  16. }