Unexpected error message

Why am I getting this error message:

Hi Perrorist,

Does the file name match the class name inside the file? For example, is the Hacker class inside the Hacker.cs file?

Does MonoBehaviour have the same colour as your classname? If not, there might be a problem with Visual Studio. Please watch lecture “Fixing Visual Studio Problems” (currently #7).

Ah! The class name was called NewBehaviourScript. I’ve changed it to Hacker. Thanks for that.

You’re welcome. Is everything working now as expected? :slight_smile:


See also:

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms