Remove unnecessary code

This commit is contained in:
Daniel Steckert 2020-06-25 18:15:17 +02:00
parent 58f6032e06
commit 6930c83918

View File

@ -38,7 +38,6 @@ class SoundManager {
} }
func playSoundEffect(pathToFile: String, fileExtension: String, volumeLevel: Float){ func playSoundEffect(pathToFile: String, fileExtension: String, volumeLevel: Float){
self.isMusicPlaying = true
soundEffect = Bundle.main.url(forResource: pathToFile, withExtension: fileExtension) soundEffect = Bundle.main.url(forResource: pathToFile, withExtension: fileExtension)
do { do {
effectPlayer = try AVAudioPlayer(contentsOf: soundEffect!) effectPlayer = try AVAudioPlayer(contentsOf: soundEffect!)