“can’t add behaviour health. the scripts file name does not match the file name of the class defined in the script!”
please help… im using .js and c#
this is for educational purpose only
“can’t add behaviour health. the scripts file name does not match the file name of the class defined in the script!”
please help… im using .js and c#
this is for educational purpose only
You class name has to be the same as the file name, just like the error message tells you…
(where ignoring abstract classes and interfaces here…)
Example: if you have a TestScript.cs, then the first line after the imports has to be ‘public class Pickup : Monobehaviour {}’
ohhh okay i think i get it
thanks for the help ![]()