Unity Error CS1001 and CS1022

Don’t use TextEdit for editing code. It does all kinds of awful things to code like inserting “smart quotes” and the like.

Use Visual Studio as recommended above, or if you really want to use a basic text editor at least use Sublime Text or something along those lines.

Also please post your code with Code Tags because us forum-goers are weak and can’t handle unformatted text like your TextEdit code.