Observed Behavior
When completing lecture 70, my collision collider doesn’t pass on a message to the Console. Anyone else have the same issue?
Expected Behavior
The code should pass on a message to the console saying Trigger or Collision depending on if the trigger button is set or not.
What I’ve tried:
I’ve been through the code many times, there’s not a lot to mess up on.
Watched the lecture three times to see if I missed something
Recreated the project
I’m using Unity 4.7
1 Like
On the first sight the method onCollisionEnter2D should be OnCollisionEnter2D… the first O should be in upper case.
And what about the rigidbody? Sorry it has been so long since i finished that lecture
2 Likes
Yup, that was it. Thank you. It was the cap O. Syntax issue but now alert.
1 Like
Jeff_V
February 12, 2017, 5:03am
4
I’m using Unity 5.5 and I don’t see the script writing to the console.
Further in the lecture I also tried adding the LevelManager line and Unity won’t allow me to add the component.