Hello, I am trying to make a simple additive menu where the user has a series of checkmarks that add different points depending on the options they choose. I have it so that the check marks are in rows of four in radio so I can only click one of each set. I also have a GUIText element in the screen that is supposed to tally up the points gained from each checkbox active. currently the script on the GUIText element is this;
Score.js
static var Score : int = 0;
function Update () {
guiText.text = "Score:" + Score.ToString();
}
and the script on the checkmarks are this;
CountingCode.js
function OnActivate(){
Score.score += 10;
}
Nothing happens when I click any of the checkmarks, the score just stays at 0. I would be very happy if someone could assist me!