File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -85,7 +85,7 @@ private void Configure() {
85
85
private void Dispose ( ) {
86
86
// cancel all jobs in progress
87
87
foreach ( DictionaryEntry _kvp in m_JobTable ) {
88
- IEnumerator _job = ( IEnumerator ) _kvp . Value ;
88
+ Coroutine _job = ( Coroutine ) _kvp . Value ;
89
89
StopCoroutine ( _job ) ;
90
90
}
91
91
}
@@ -94,9 +94,8 @@ private void AddJob(AudioJob _job) {
94
94
// cancel any job that might be using this job's audio source
95
95
RemoveConflictingJobs ( _job . type ) ;
96
96
97
- IEnumerator _jobRunner = RunAudioJob ( _job ) ;
97
+ Coroutine _jobRunner = StartCoroutine ( RunAudioJob ( _job ) ) ;
98
98
m_JobTable . Add ( _job . type , _jobRunner ) ;
99
- StartCoroutine ( _jobRunner ) ;
100
99
Log ( "Starting job on [" + _job . type + "] with operation: " + _job . action ) ;
101
100
}
102
101
@@ -105,7 +104,7 @@ private void RemoveJob(AudioType _type) {
105
104
Log ( "Trying to stop a job [" + _type + "] that is not running." ) ;
106
105
return ;
107
106
}
108
- IEnumerator _runningJob = ( IEnumerator ) m_JobTable [ _type ] ;
107
+ Coroutine _runningJob = ( Coroutine ) m_JobTable [ _type ] ;
109
108
StopCoroutine ( _runningJob ) ;
110
109
m_JobTable . Remove ( _type ) ;
111
110
}
You can’t perform that action at this time.
0 commit comments