Advertisement
Guest User

Untitled

a guest
Jul 2nd, 2017
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. using UnityEngine;
  2.  
  3. public class Waypoints : MonoBehaviour {
  4.  
  5. public static Transform[] points;
  6. void Awake()
  7. {
  8. points = new Transform[transform.childCount];
  9. for (int i = 0; i < points.Length; i++)
  10. {
  11. points[i] = transform.GetChild(i);
  12. }
  13. }
  14.  
  15.  
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement