The namespace 'global::' already contaiins a definition for 'NewBehaviourScript'
I think the script itself is fine so I won't upload it. I thought I could drag and drop my script into the Inspector. When I attempted to create a new script Unity opened visual studio and wanted a new script. So I closed VS, deleted my old script from unity and tried to start again. After that I had to change the name of my variables and got the error above. Is there any way of making Unity forget all previous scripts?
Your answer
Follow this Question
Related Questions
Please Help Me: Assets/Scripts/PlayerControaller.cs(34,33): error CS8025: Parsing error 1 Answer
cannot convert type HealthandInventory to int 0 Answers
Object reference not set to an instance of an object - Jumping Scripts (C#) 1 Answer
How to setactive Car Script on writing script on Java on Android platform 0 Answers
How do I fix "universul?" script problem 0 Answers