public CoRoutine( IEnumerator c, CoRoutineCompletionEvent e, bool autoStart ) { complete += e; coRoutine = CoRoutineHandler.CreateCoRoutine( c ); coRoutine.Finished += TaskFinished; if( autoStart ) { Start(); } }
public CoRoutine( IEnumerator c, CoRoutineCompletionEvent e ) : this(c, e, true) { }