I am completely stumped on this error. Please tell me what I am doing wrong in this script. The error says I need to place a semi-colon at the end, but I already have. I have in fact saved the script, and restarted unity too. Is my script file corrupted, or should this go under the FixedUpdate() or other function area?
#pragma strict
function Update(){
var InfoText : GameObject.Find("Building Mode GUIs/Stats GUI/InfoText");
InfoText.text = "Price: " + PriceAdding;
}
UCE0001: ‘;’ expected. Insert a semicolon at the end.
This is at line “var InfoText:…” I cut out the rest of my script because the script was working rather fine before I added this, and it is very long.