I have been looking over this site and it has indeed been very helpful, however i canot seem to find the information that i need to solve a problem using JS
var Score = 2;
var totalScore = 5;
var mutiValue = 3;
var partScore = 4;
var guiTextThing : UnityEngine.GUIText;
var ScoreString;
var stringtotalScore : String;
/*var ScoreString : String;*/
function Update ()
{
partScore = Score * mutiValue;
totalScore = totalScore + partScore ;
totalScore.ToString(stringtotalScore);
ScoreString = stringtotalScore;
guiTextThing.text = ScoreString;
}
the main problem is that the text will not display and i am unsure if the rest of this is working, yes i have connected up to the GUItext and the script is atacted to the player and is running, just no update, i was having a cannot convert int to string but i fixed that using ToString() and i get no errors from the script when running
any idea where i have gone wrong?