Im also geting an eror saying “hacker” is missing the class attribute ‘extesionofnativeclass’
Now that’s weird, would you please copy/paste again your entire code. And also tell me how your script in Unity is named.
Hi Spooder,
Does the file name match the class name inside the file? For example, is the Hacker class inside the Hacker .cs file? Did you declare the type Hacker correctly everywhere you use it? Have you already compared your code to the Lecture Project Changes which can be found in the Resources of this lecture? C# is case-sensitive.
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).
This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.