- Home /
 
 
               Question by 
               Maisonadam1994 · Apr 15, 2013 at 02:27 AM · 
                animationparticle  
              
 
              stop particles when animation is playing
hey guys , i wanna stop the particles when my Idle animation is playing , here's my script , thanks !
 function Start () {
 particleEmitter.emit = false;
  
 }
 
 
 
 function Update () {
 if ( Input.GetKey(KeyCode.UpArrow) )
     //move up
   if ( Input.GetKey(KeyCode.DownArrow) )
     //move down
   if ( Input.GetKey(KeyCode.RightArrow) )
     //move right
   if ( Input.GetKey(KeyCode.LeftArrow) )
     //move left
 
 run = GameObject.Find("run");
 particleEmitter.emit = true;
 
 if (!animation.IsPlaying("idle"))
             animation.Play("idle");
             
             
             run = GameObject.Find("run");
 particleEmitter.emit = false;
             
 
 }
         
 
              
               Comment
              
 
               
              Your answer
 
             Follow this Question
Related Questions
Animation play when dead 2 Answers
Can I make animations snap to a frame? 1 Answer
particle spawn issue. 0 Answers
my animation script does not work 0 Answers