Quantcast
Channel: Answers by "Dreamblur"
Viewing all articles
Browse latest Browse all 56

Answer by Dreamblur

$
0
0
Make your arrays static. static var enemies : GameObject[]; static var items : GameObject[]; To access from any script: LevelArrays.enemies[0] (I've been using C# more than UnityScript lately, so if my brain somehow mixed things up, then just post a comment and I'll take out my UnityScript hat for a bit. =P)

Viewing all articles
Browse latest Browse all 56

Trending Articles



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