#pragma strict;
function Start () {
SpriteRenderer scrollTop = gameObject.AddComponent();
}
function Update () {
}
#pragma strict;
function Start () {
SpriteRenderer scrollTop = gameObject.AddComponent();
}
function Update () {
}
On the very first line:
#pragma strict
pragma is a compiler directive, not a statement, so it should not havr a semicolon.