Things seem to work but when the enemy swings the sword, the player doesn’t take the damage occasionally. I checked the timining of collider on the sword being enabled and concluded this doesn’t have to do with collider.
What values do I need to fine-tune to ensure every swing correctly registers?
P.S. I believe I wrote my code exactly like the lecture.