Problem with collision detection (673765)

Hello everyone,

I’m pretty new to Unity and game development in general, so I’ve enrolled on Udemy’s popular course to get started. Basically, I’m building an Arkanoid clone in the current section. Everything went smooth until I had to implement level switching (or simulating win, as shown in the code). Collission between the ball and bricks works ingame, but is not detected in the console, and I can’t call on the SimulateWin() method that’s under my OnCollissionEnter2D. I’ve checked the code multiple times, spelling and everything, compared it to the code in the videos I’m watching, and it just won’t work, even tho Monodevelop detects no errors.

Screenshots are here so, please, take a look and tell me what I did wrong :slight_smile:

Thanks in advance!




I think you have a spelling error, an extra ‘s’ in OnCollisionEnter2D

Oh my god, and here I’m typing how I checked the spelling multiple times :sweat_smile:
Thanks a lot, really :slight_smile: