Quantcast
Channel: Answers by "Brett_MMU"
Viewing all articles
Browse latest Browse all 12

Answer by Brett_MMU

$
0
0
var waypoints : GameObject[]; var sortedWaypoints : GameObject[]; function Start() { waypoints = GameObject.FindGameObjectsWithTag("waypointTag"); sortedWaypoints = new GameObject[waypoints.length]; for (g in waypoints) { sortedWaypoints[g.GetComponent(waypointScript).ID] = g; } } try that

Viewing all articles
Browse latest Browse all 12

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>