Accessing arrays in other scripts.

Hey guys,

Just curious on how the best method would be for allowing me to access an array from a script which is attached to a game object. Been playing around with a few ideas and I’m getting more and more confused the further I get into it.

Basically, I’m wanting the ability to check the values that are being hold in one array to check it off with an array in the script I’m currently in.

Hoping this makes sense and any help would be appreciated! :smile:
P.S I’m using C#

Make the arrays public and use GetComponent. http://docs.unity3d.com/412/Documentation/ScriptReference/index.Accessing_Other_Game_Objects.html

–Eric