I'm using Animator and state for animating my charachter.
So, i've (example) an Idle state, associated to an Idle motion animation , and a Death State, associated to a Death animation.
But I've 5 possible animation for death so i would like to randomize death animation without create a state for each animation.
My State "Death" has a "Motion" variable. I would like to change at runtime this "motion" variable. Is it possible ?