Increasing Enemy Health Broken

I can increase the value of an enemy’s health, but the enemy is still one-shotted by my player laser. I have gone over the Enemy.cs and DamageDealer.cs so many times and there are no errors to give me a clue as to what is going on. Any ideas?? Thanks! :heart:

Hi,

Welcome to our community! :slight_smile:

The best would be to log the variables into your console to see if they have the expected values. If they do, check the if-condition. Maybe there is a misplaced semicolon or a typo somewhere. If they don’t look for the code that is supposed to assign the expected value to the variable.

Post your scripts.

This topic was automatically closed after 14 days. New replies are no longer allowed.

Privacy & Terms