Hello! I am building a combat system in unity using a couple ENUM’s. One of these ENUMS is public and is used to increment the basic combo from 1 - 2 - 3. This works fine and has for days. However, I added in another animation, and in the animation, I set that enum to 4 at the very start, and 0 at the end. This means that it doesnt increment the enum anymore through the usage of enum++ and always seems to snap back to enum 0 despite me not having any code that WOULD force it back in place. Any input would be amazing, thank you!
I’m not sure what you mean by ENUM in this case, I can only suppose it is an integer parameter inside the AnimatorController.
If I get it correctly, you are using either curves or animation events to set said value. Be aware that sometimes Animation Events may not fire if they are placed inside the range of a transition.
As an example:
A---------------A--------------------
----------B—!--------------B-------
If ! is the event, it will not fire as the transition is occurring.
That might be the main reason why your value is not being set correctly.