 |
c# - Collision detection not working in Unity 2D - Stack Overflow
Unity has replicated all of the physics methods for 2D with the word "2D" stuck onto the end! So for your example, it should be changed to: void OnCollisionEnter2D(Collision2D collision) And the same with basically any other 2D physics thing.
stackoverflow.com |
 |