- Home /
Issues with C# script (using tutorial)
I'm following this tutorial: http://www.youtube.com/watch?v=kE8nZL5Fd… 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?
Answer by liszto · Nov 18, 2012 at 02:38 PM
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%)
Your answer
Follow this Question
Related Questions
Making a bubble level (not a game but work tool) 1 Answer
Camera Script - Bird's Eye View 1 Answer
movement 2d in a grid 3 Answers
Player movement issue... 1 Answer
Car movement script ? 1 Answer