I’m sorry for the late response, @Shlok_Jaiswal. For some reason, I missed that you replied here. Next time, if I don’t reply within 2 working days, please feel free to tag me in your thread with @Nina.
There is a typo on the method name. The correct name is OnCollisionEnter2D.
Did this help?
See also:
- Forum User Guides : How to mark a topic as solved