Ship does not get destroyed : (

Hi,
I just finished this lesson and everything works fine exept for the ship…
When an enemy laser hits it 5 times it doesn’ t get destroyed but when a normal laser hits it 5 times it does.
Thank you for your time!!!

You can find the files on this link
https://eliasnijs.bynder.com/share/KNUGC4TFHJKG623FNY5GEY3BG44TMYZTGUZDKZJQGUYTONDGGMZDKZRTHA2GGMLGGU3TANZUGI4WEOBVGA2GMZDBGI3DKOJYG4YTIOBTGQZWMNTCHA2TEY3EHE

Hi Elias,

It appears that your enemy laser prefab doesn’t have a projectile script attached to it :wink:

When you do attach one though, the enemy ships get destroyed by their own lasers, so I suggest making four new layers, one for the player ship, one for the player lasers, one for the enemy ships and the last one for the enemy lasers.
Once you assigned every prefab to their respective layer, you can go into the layer collision matrix (Edit -> Project Settings -> Physics 2D) and only allow collisions between the player ship and enemy lasers, and between the player lasers and enemy ships.