Hey Hey!
I’ve just completed this section of the course, however, I encountered an issue in the tutorial. I’ve resolved it myself, however, I’m not certain why my solution differs from Rick’s example.
Here is the code in question:
void OnCollisionEnter(Collision other)
For my OnCollisionEnter method, I receive the following error statement.
Script error: OnCollisionEnter
This message parameter has to be of type: Collision
The message will be ignored.
The solution was to change the reference to…
void OnCollisionEnter(UnityEngine.Collision other)
Does anyone know why I was required to add UnityEngine while Rick was not?
Thank you!