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:
![alt text][1]
[1]: /storage/temp/43191-anim.png
it's strange... maybe is the death script? because with maya animations it didn't gave this problem.
function Dead()
{
if(morto==0){
GetComponent.().Play("Lizard_muore");
Destroy(lizard.GetComponent(AiNemico_lizard_prefab2));
GetComponent.().PlayOneShot(suono_morte,1);
Destroy(gameObject,20);
}
morto=1;
}
↧