- Home /
 
               Question by 
               importguru88 · Jul 29, 2016 at 05:02 AM · 
                animationanimator controlleridle animations  
              
 
              How do I make idle animation idle back to false in the animator control
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 :

 
                 
                ata.png 
                (250.8 kB) 
               
 
              
               Comment
              
 
               
              Answer by importguru88 · Jul 29, 2016 at 05:08 AM
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;
 
 
                         }
         
Your answer
 
 
              koobas.hobune.stream
koobas.hobune.stream 
                       
                
                       
			     
			 
                