in the script below, it changes the guitext the next time the level is loaded, but can someone help me update the text when the score is updated.
here is the script
var Counter : int = 0;
function addscore () {
Counter++;
guiText.text = ""+Counter;
if (Counter > 100){
guiText.anchor = TextAnchor.UpperRight;
guiText.pixelOffset = Vector2 (100,351);
}
}
function endlevel (){
guiText.text = "0";
Counter = 0;
}
thanks in advance
ps, if there is a link to something that can help me can you post it please, thanks