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)
↧