Quantcast
Channel: Latest Questions on Unity Answers
Viewing all articles
Browse latest Browse all 171066

Access varibles in and array

$
0
0
How would I go about accessing a variable in an/multiple objects in an array. JS script The game object Unit will be placed will be placed inside the seleectedUnits array. How would I get the variable targetLocation in Unit to equal movementOrders in Commander. There will be multiple Units inside the array. Commander Script var selectedUnits : Array = new Array(); var movementOrders : float; Unit Script var targetLocation : float; Thanks

Viewing all articles
Browse latest Browse all 171066

Trending Articles



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