- Home /
 
               Question by 
               Baalhug · Dec 04, 2013 at 05:19 PM · 
                coroutineyieldcoroutines  
              
 
              Coroutine not running
Hi guys, i have a problem with a coroutine. When i debug the game i see the line of execution does not enter in the coroutine code:
 void Update(){
    if (iCondition==true){
    StartCoroutine("iRun");
    }
 }
 
 IEnumerator iRun(){      // In debug mode the tracing line dont pass this point
         while (iCondition==true){
 //         ...... CODE .....      //
            yield return 0;
         }
 }
When debug reaches the commented line, in the watch window i notice iCondition value is null. Any idea why is this happening?
               Comment
              
 
               
               
               Best Answer 
              
 
              Answer by Baalhug · Dec 04, 2013 at 09:03 PM
Well, this is actually running but as long as i have more than 1 object calling the same script, everytime i push trace into, it passes to the next object. I close the question.
Your answer
 
 
             Follow this Question
Related Questions
Coroutines and states 1 Answer
Stuck while solving a Coroutine problem 0 Answers
Trouble Resuming after Yielding while Inside Coroutine 1 Answer
Coroutines not passing yield 1 Answer
 koobas.hobune.stream
koobas.hobune.stream 
                       
                
                       
			     
			 
                