Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement