Hello I have this error appearing (UCE001: ‘;’ expected. Insert a semicolon at the end) on Unity with my script and I don’t know how to fix it. Thanks for your help:
#pragma strict
var coins : int = 0;
function Start () {
}
function Update () {
function (OnGUI){
GUI.Label(new Rect(10,5,300,50), “Score:”+ coins);
}
}
function Update () {
}