18 lines
361 B
C#
18 lines
361 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class Waypoints : MonoBehaviour
|
|
{
|
|
public static Transform[] points;
|
|
|
|
void Awake()
|
|
{
|
|
points = new Transform[transform.childCount];
|
|
for (int i = 0; i < points.Length; i++)
|
|
{
|
|
points[i] = transform.GetChild(i);
|
|
}
|
|
}
|
|
}
|