Rotation AddTorque Issue

Hello, in the Complete C# Unity Game Developer 2D course, on the Section 3 of the ‘36. AddTorque To Rotate’ after that i wrote the code that you can see in the attachment, Barry doesn’t rotate, how can i solve the issue?

Hi Emanuele,

There seems to be a problem with VS. Maybe that’s why Barry is not working as expected. I can see that there might be a problem because MonoBehaviour in your script does not have the same colour as your classname.

Close Unity and VS, go to your project folder and delete the *.sln and *.csproj files. Then launch Unity again.

Furthermore, have you already compared your code to the Lecture Project Changes which can be found in the Resources of this lecture?

See also: