Skip to content
Snippets Groups Projects
Waypoints.cs 303 B
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);
        }
    }
}