Collision between ship and missile

Here is all of our work so far we have tried using the Debug.Log function and it logs to the console that it is getting hit, but the health float doesn’t ever tick down and the player ship can’t die.
Thank you for your help,
Dean and Evan

If I were you, I’d make the projectile’s damage variable private, just to make sure it isn’t an issue of a public value being overridden in the editor. If that works, either make it public again and make sure to set its value in the prefab as well, or just leave it private. Hope that helps!

1 Like

Hi Sebastian,
We have been playing and testing the game and we found that we didn’t have the projectile script attached to the enemy lazer prefab and with that we were taking damage just fine thank you for your help.
Sincerely,
Dean and Evan

2 Likes