Jump to content

Why is my end bracket a syntax error? C#

Go to solution Solved by Nineshadow,

Delete one of the class declarations.

You have two of :

public class PlayerControler : Monobehaviour 

One with two "l"-s though (controller)

Learning how to use Unity and I am at a part in a tutorial on making a sprite move on keyboard commands, and for some reason the end bracket is a syntax error, with error code CS1513  C# } expected. I am using Visual Studio Community 2015.

post-80340-0-00589700-1441846750.png

 

You are on a need to know basis, and you don't need to know.

 

 

Link to comment
https://linustechtips.com/topic/447207-why-is-my-end-bracket-a-syntax-error-c/
Share on other sites

Link to post
Share on other sites

Delete one of the class declarations.

You have two of :

public class PlayerControler : Monobehaviour 

One with two "l"-s though (controller)

i5 4670k @ 4.2GHz (Coolermaster Hyper 212 Evo); ASrock Z87 EXTREME4; 8GB Kingston HyperX Beast DDR3 RAM @ 2133MHz; Asus DirectCU GTX 560; Super Flower Golden King 550 Platinum PSU;1TB Seagate Barracuda;Corsair 200r case. 

Link to post
Share on other sites

Delete one of the class initializations.

You have two of :

public class PlayerControler : Monobehaviour 

One with two "l"-s though (controller)

Thanks so much! I am such a noob at this.

You are on a need to know basis, and you don't need to know.

 

 

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×