Today I made a new script and found that it was filled with the code of another script and not the normal new script template. The code was cut and paste from another script in my project except that the the name of the file in my assets was different. When I went to the actual script of the copied code, I found that the file contained the new script template and the class name was name of the new script that I created.
So when I made the new script, its contents was switched with the contents of another script. The problem is easily fixed, but I’m wondering how this happed?
Unity Version 5.1.1