I have a character that has an equal chance of being spawned into the game as a male or female version by changing the runtime animator controller. The problem is I cant seem to figure out how to make it only play the sounds for the male or female version. I can randomize the audio clip, but then the chances of having a male character with a female voice is 50%, heh.
if(anim.runtimeAnimatorController.name == “femalecontrollerName”)
{
play female sound
}else
if(anim.runtimeAnimatorController.name == “malecontrollerName”)
{
play male sound
}