Quantcast
Channel: Answers by "Mortoc"
Viewing all articles
Browse latest Browse all 73

Answer by Mortoc

$
0
0
It would look something like this. You could put this script on a GameObject and in the editor set up as many units in that array as you want. I do recommend using better names than I did: public class ObjectThatContainsUnits : MonoBehaviour { public GameObject[] _anArrayOfUnits; }

Viewing all articles
Browse latest Browse all 73

Trending Articles



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