Laser Defender Health

Hi. I noticed that if the player takes damage so its health is below the damage caused by a collision, the health displayed becomes negative when a collision occurs, which doesn’t look nice.

Use MATH.MAX(0,health) to solve this after calculating the health in the ProcessHit method in player.cs.

4 Likes

Privacy & Terms