Enemy has 2 special killing animation, I want to call those randomly when player's health low
Enemy has 2 killing (finish him animation) and I wanted to call this animations from animator randomly. I tried below code but it didn't work. How can I do that?
float randomkillmovement = Random.Range(0f, 2f);
if (randomkillmovement == 0f)
{
anim.SetBool("Zombie01_KillAnimation01", true);
}
else if(randomkillmovement == 1f)
{
anim.SetBool("Zombie01_KillAnimation02", true);
Comment