Why doesn't this work? I'm following a tutorial step by step and in the video, this code works fine, but I'm getting 2 errors and I don't know what they mean.
Not downloaded yet
About this post
- Posted
- Archived
- Score
- 7 · 82% up
- Kind
- Image
- ID
- pcpu6t
16 comments
Please don't take photos of Code.. just copy paste it..
You already got PlayerMovement defined somewhere. Try ctrl + shift + F and search for PlayerMovement, or rightclick -> find all reference on the class itself. Remove one of the instance.
Sorry, I don't have reddit on my PC yet. Its brand new, so I couldn't copy and share to here.
This is the first script I've written though. I don't know how I could've defined it elsewhere.
But reddit is a website... This makes no sense.
Sometimes this happens if you accidentally duplicated your script. Double check by searching for it in unity’s project window.
Thanks! I think this worked. I mean, I couldn't find the duplicate, so I just deleted the script i was working on, and another one kind of just appeared in the assets window out of nowhere. After deleting that one too, and starting over, it seems to work.
For the first time since I started unity, I can move my "character"!