- Home /
Question by
drewdrewpt · Jul 21, 2016 at 07:25 AM ·
2d game
2D collider wont work
Super new to this, anyone know whats wrong?
capture.png
(4.7 kB)
Comment
Best Answer
Answer by tanoshimi · Jul 21, 2016 at 07:30 AM
You're missing
#pragma strict
at the top of your scriptIt's
OnTriggerEnter2D
, notonTriggerEnter2D
You've got an extra closing }
Your answer
![](https://koobas.hobune.stream/wayback/20220612085225im_/https://answers.unity.com/themes/thub/images/avi.jpg)