In my Game i want to make it so that when the Laser hits the Asteroid that the LaserProjectile gets destroyed by the Asteroid. I dont want to attatch the Destroy function in the Laser because there will be enemys and if i atttatch the Destroy function on my laser they will always be oneshot. I placed these lines of Code on my Asteroids but the Laser doesnt get Destroyed.
Laser has a BoxCollider2D and a Rigidbody2D.
The Asteroids got a PolygonCollider2D and a Rigidbosy2D.