I’ve received an error in my “ObjectsHit” script for the obstacle course game in the Unity 3D course. This error only occurred after I added the If/Then statement for identifying the player in “Caching a Reference” I’m not sure how to fix it. What should I do?
The namespace ‘’ already contains a definition for ‘ObjectHit’ [Assembly-CSharp]
Type ‘ObjectHit’ already defines a member called ‘OnCollisionEnter’ with the same parameter types [Assembly-CSharp]