File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
UOP1_Project/Assets/Scripts/Audio Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ private IEnumerator PlayDelayed()
36
36
37
37
//This additional check prevents the AudioCue from playing if the object is disabled or the scene unloaded
38
38
//This prevents playing a looping AudioCue which then would be never stopped
39
- if ( _playOnStart )
39
+ if ( _playOnStart )
40
40
PlayAudioCue ( ) ;
41
41
}
42
42
Original file line number Diff line number Diff line change @@ -176,7 +176,7 @@ private void OnSoundEmitterFinishedPlaying(SoundEmitter soundEmitter)
176
176
177
177
private void StopAndCleanEmitter ( SoundEmitter soundEmitter )
178
178
{
179
- if ( ! soundEmitter . IsLooping ( ) )
179
+ if ( ! soundEmitter . IsLooping ( ) )
180
180
soundEmitter . OnSoundFinishedPlaying -= OnSoundEmitterFinishedPlaying ;
181
181
182
182
soundEmitter . Stop ( ) ;
You can’t perform that action at this time.
0 commit comments