- Home /
 
               Question by 
               gaia2222 · Jun 16, 2020 at 07:33 PM · 
                variablefunctionstoreparametersstartcoroutine  
              
 
              How can I storing the IEnumerator with parameters?
 IEnumerator<bool> some_funcion;
 
 void Start(){
         some_function = IEnumerator_function();
         }
 
 public IEnumerator IEnumerator_function(bool x){
          //doing something
         }
Help~how can make it works. Thankyou for your suggestion~
               Comment
              
 
               
              Answer by ShadyProductions · Jun 16, 2020 at 08:04 PM
 // Variable type must be of IEnumerator
 private IEnumerator some_function;
 
 void Start() 
 {
     some_function = IEnumerator_function(true); // or false
 }
 // See how return type here is IEnumerator
 public IEnumerator IEnumerator_function(bool x)
 {
     // execute
 }
Your answer
 
 
              koobas.hobune.stream
koobas.hobune.stream 
                       
                
                       
			     
			 
                