Hello, my current issue involves having two animations that come from “Any State”. Both of them are set to transition based on two different triggers.
Any State → Trigger1 → Animation1
Any State → Trigger2 → Animation2
My issue is that if the player triggers Trigger1 and Animation1 starts playing, then triggers Trigger2, Animation2 will then start playing cancelling Animation1. Is there any way to prevent that from happening?
I tried to prevent the setting of either triggers if one is already set but doing animator.GetBool(“Trigger1”) always returns false, so it always allows me to set either trigger. I also tried creating a local variable that gets set when one of the triggers is set but couldn’t figure out how to reset the variable after either of the animations play.
Any help would be appreciated. Thanks!