What is wrong with my script. I am trying to access a variable called “score” in a scrip called “score and gui”. Here is the script. Thanks in advanced
function Start (){
Debug.Log(points.score);
}
function Update (){
var points : score and gui = GetComponent(score and gui);
}
Here is the script called “score and gui”
var score : int = 0;
function Start (){
}