Some scripting problems...

Hi! I’m new in java script, i have some problems with them in Unity:

  1. i have an array of elements in one script:
public static var Missions = new Array(5);
Missions[1] = "TestMission";

i need to read this variable in another script, how to do it?

  1. If i have GUIText, and script for this text, can i change it’s text from this script?

  2. If i have GUITexture, and script for this texture, how can i change this texture from script?

  3. I’m coding for android, and i need to write something like saves files in cash, how to write and read them?

  1. ScriptName.Missions[1]
  2. Change the text in the script for the text using your static variable
  3. Using an if statement
  4. PlayerPrefs (look them up in the scripting guide)