MissingFieldException: Cannot find variable text.
Boo.Lang.Runtime.RuntimeServices.SetProperty (System.Object target, System.String name, System.Object value)
scoreCounter.Update () (at Assets/Working Assets/Scripts/scoreCounter.js:4)
I get this error from this script:
static var score = 0;
function Update () {
GetComponent (TextMesh).text = score;
}
I don’t understand what’s going on!