According to the docs, “The parameter can be a float, string, int, object reference or an AnimationEvent object.”
Is there a good reason behind this? My only thought is that setting bool parameters during an animation is meant to be done somewhere else, but if that is the case, then where?
Right now I have a function which gets called at the start of each animation as an animation event:
private void SetInterruptableFlag( int interruptFlag )
character.CurrentActionIsInterruptable = interruptFlag != 0;
I know it’s trivial, but I feel like I should just be able to directly set the variable equal to the value of the passed in argument instead of making an extra != comparison.