Assetts error: Unexpected symbol `var'

I try to work Brackeys tutorial #2 and I get an error that is “Assets/PlayerControls 1.cs(3,0): error CS1525: Unexpected symbol `var’”, and I don’t think it used to. I feel I’m failing to see what the problem is.

When I dive in the the CSharp editor, it’s telling me “#pragma strict” is an “Unrecognized #pragma directive”. I think this really has something to do with the heart of my problem…

(?)

The tutorial has JavaScript code, but you’re creating C# file.

1 Like

This. Get rid of the pragma directive for one… you don’t need it for c#.