can somebody help me,
can somebody help me, i keep getting the error , "PlayerInteract.cs(21,10):error CS0111: Type 'PlayerInteract' already defines a member called 'Update' with the same parameter types" my code is,
and i can ss my code
13 Replies
it means you have the method Update() twice
Does
MonoBehaviour
have an Update
method? If so, you're meant to override ithow
how do i override
Huh, or maybe not, actually
You sure you have only one
Update
method there?I had a look at the unity docs and the MonoBehavior Class. - Seems like nothing is wrong with your code because there is no virtual Update in the base Class.
I found this on reddit:
yes
want me to ss my code?
No need
ive been stuck on this problem for 2 days now
its been a complete stop to my game development
Check what Hannsen posted
Maybe you also have some leftover duplicate classes or something
ok
how do i go in the unity files
Open the windows file explorer, go to your unity project, and look for duplicate classes there
ok
thank you it worked
ur a goat fr