New transition vs resetting the attack trigger

In the video we make a stopAttack transition, but what’s the benefit of this over just performing:

GetComponent().ResetTrigger(“attack”);

I had added this early on and it functions in the same manner from what I can tell and seems simpler.

Resetting the attack trigger is always a good idea (I actually reset it before setting it regularly), but it doesn’t trigger an abort to the attack method. In other words, the attack will still finish without a StopAttack trigger transition.

1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms