- Home /
Question by
Bullgator150 · Dec 17, 2016 at 11:16 PM ·
semicolon
It says I have an unexpected semicolon, doesn't say what line on c# (mac)
pragma strict;
function Start () { SpriteRenderer scrollTop = gameObject.AddComponent();
}
function Update () {
}
Comment
Answer by tanoshimi · Dec 17, 2016 at 11:20 PM
On the very first line:
#pragma strict
pragma is a compiler directive, not a statement, so it should not havr a semicolon.