basically i’ve made some animations using unity animator, i put them in legacy, and here everything is good, but when death animations plays the enemies move to a generic place which is the one were i started creating animations.
example:
it’s strange… maybe is the death script? because with maya animations it didn’t gave this problem.
function Dead()
{
if(morto==0){
GetComponent.<Animation>().Play("Lizard_muore");
Destroy(lizard.GetComponent(AiNemico_lizard_prefab2));
GetComponent.<AudioSource>().PlayOneShot(suono_morte,1);
Destroy(gameObject,20);
}
morto=1;
}