You’re using the 3D physics callback, not the 2D physics callback. It’s OnTriggerEnter2D.
Also, please use code-tags when posting code.
Thanks.
You’re using the 3D physics callback, not the 2D physics callback. It’s OnTriggerEnter2D.
Also, please use code-tags when posting code.
Thanks.