Okay . I have idle animation with a boolean call isIdle and it is set to true when the game starts. I want to keep it their . The problem I am having it’s not playing the die animation with a trigger parameter . I want to try something new. I have notice that when I click on the die animation the idle its the idle. Right now I want to set the die animation as a boolean. I have a pic here :
Never mind . I did this to get it to work :
if (m_DeactivateOnDeath) {
Scheduler.Schedule(m_DeactivateOnDeathDelay, Deactivate);
GetComponent<AudioSource>().Play();
GetComponent<Animator>().SetTrigger("isDeath");
GetComponent<Enemyai>().enabled = false;
}