Hi!
So need to create GUI.Label and then access to it…
first script :
test.js
var style : GUIStyle;
public var SCORE = "0";
function OnGUI ()
{
style.fontSize=18;
style.normal.textColor=Color.red;
GUI.Label (Rect (Screen.width*0.2, Screen.height*0.15, 100, 20), SCORE,style);
}
test_access.js
function Start()
{
var LOAD : test;
LOAD = GetComponent(test);
LOAD.SCORE="1";
}
So this solution does not work…