My enemies are being destroyed after a single shot, despite some of them having their health increased to require more. I’ve searched around and gone through my code, but I can’t figure out why my condition isn’t functioning as expected.
I’ve logged to the console their health values, and they are taking the expected damage, and are being destroyed before their health values reach zero.
Here’s a screenshot of the applicable code:
Here’s a shot of the enemy’s prefab:
Here’s a shot of the player projectile prefab:
And lastly, here’s a shot of the console output: