C# Compiler Errors

I followed along and it went from playing to 2 errors.

I would appreciate any feedback


I’d guess you have two classes: ObjectHit.

Thank you, I managed to fix one of the errors but I still have error CS1002 on line 7, 13 across.

I don’t know how to fix it, I still got the errors when I copied and pasted the instructors code, which is weird.

I will keep trying, I’m just bummed because I wanted to continue the course.

I thought of looking into becoming a game developer but I struggle with the coding side and I don’t have a lot of experience drawing environments or characters.

The first error says you have 2 classes called ObjectHit (like Michael said). The second error says you have OnCollisionEnter(...) defined twice. This is likely due to the first issue, but you said you fixed the first. How did you fix it?

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

Privacy & Terms