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:
- Forum User Guides : How to mark a topic as solved