[Solved] Parsing error


Can’t seem to find any solution the problem i am having but there is something wrong on line 25 and can’t seem to find any solution.

Hi @Julian_Borrego,

You are missing to closing braces, e.g. }

You code;

void Update() {
    if (Input.GetKeyDown(KeyCode.UpArrow) {
        print("Up arrow pressed");

should read;

void Update() {
    if(Input.GetKeyDown(Keycode.UpArrow) {
        print("Up arrow pressed");
    }
} 

You need to close any brackets or braces that you open, so always check that there are pairs.

Hope this helps.

I take it u got it, missing the closing parenthesis } after Update method?

Privacy & Terms