Help, I´m doing something wrong

I´m starting the Udemy Unity C# course, and I´m stuck in the Terminal Hacker lecture: Section 2: 12: Using terminal writeline(). In the simple task of dragging the script-file I just made in to Hierarchy Window, on top of WM2000 asset, it brings up a pop up:

“Can´t add script behaviour Assembly.nfo.cs_The Script needs to derive from MonoBehaviour”

What´s up with that? Everything is seemingly similar to the view in lecture.

Hi Tommi,

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

in the script change Public Class NewMonoBehaviorScript to Public Class Hacker

1 Like

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