I’m following this tutorial: - YouTube and am at 13:40 in the video. But every time I try to move the script into “CarAll”, this error appears: “Can’t add script behaviour CarDriver. The scripts file name does not match the name of the class defined in the script!” Does anyone have any suggestions as to what I am doing wrong?
That’s because your script name for example CarDriver.js or CarDriver.cs doesn’t have the same name than your class name in the file.
Check the class name and change the file name with the same.
P.S : I can’t open the video so I just say what you must do without see it but it’s that (sure at 110%)