Collision Hit Detection Hack n Slash

So i made a script that when clicked swings a weapon and in that timeframe every entity that it its deals damage to it, now is my problem that i use ontriggerenter so every time it enters it deals damage, when ik swing my dagger for example and i turn very fast when i press w, a, s, d then its possible to deal damage to everything in a circle so my question is how can i code the thing that you can only hit in front of you and not in front when you turn very fast.

Thanks in advance,

Well You can disable the Rigid Body component in the OnTriggerEnter function. That way the collider will stop working. To re-enable it you can use Invoke.