Im having compiler errors with my code

so It looks like nothing is wrong but I’m trying to get a compiler.
I have tried adding brackets deleting line and more.

Updated Sat Mar 04 2017 17:29__Updated Sat Mar 04 2017 17:29

looks like your missing a closing brace after the IF on line 40

if (Input.GetKeyDown(KeyCode.A)) {
			myState = States.Above_water;
		} // missing this closing brace

thank you so much that worked but for some reason the unexpected error for R for right and L for left still going saying its a parser error

Hi @Nicholas_Fenwick,

Line 60 is missing a + at the end of the line to concatenate the strings.

1 Like