I got an error and I don't know what I'm doing wrong

I wrote the code by myself and after tthat i copied it but it still didnt work. what am I doing wrong?

Thanks for the help
Damir

Hi Damir, welcome to the community :slight_smile:

The error you are seeing is most likely caused by you having more than one script where the class name has been defined as Level.

In the screenshot you’ve take we can see that the path to the script in question is Assets/Scripts/Level.cs, so take a look through the other folders you have, or perhaps even the root of Assets and see if you have another script with the same name.

Hope this helps :slight_smile:

1 Like

Thx, this was the case, my fault :slight_smile:

1 Like

You’re very welcome Damir.

I wouldn’t worry about assigning blame, you’re on a learning journey, so you can’t really be responsible for something you weren’t aware of :slight_smile:

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

Privacy & Terms