Hey, having a really dumb issue with my code which can cause a large memory leak with it looping so much. Essentially the logic is:
- Timer hits 0
- Stop timer and trigger the attacker script
- Checks if the barricade is active
- If yes, decrease it's health by 1. If no, kill player
- Restart timer
However on step 4, it's just looping back to step 2 for seemingly 0 reason and will keep looping through until the barricade has been broken and the player dies. I've been trying to debug this all night, breakpoints just seem to baffle me even more as it's seemingly just, flipping values by itself and ignoring my if statements. I'm sure it's just something incredibly simple but I can't work it out. (I'll attach the relevent scripts after this message)