In Ch7, I have bene following along and have done everything up to the sound manager the bobblemarine’s audio source and the alien directly calling the sound manager to play a sound.
My problem is that I get a null error when an alien is killed. So being confused I added a print(); function before the clip is to be played in the soundmanager grabbing clip.name to see if it came out null. it didn’t it correctly called the alien death sound from the sound manager.
however, the following call soundEffectAudio.PlayOneShot(clip); gives a null error. What could be causing my null reference exception?
Also adding a audio source to the alien prevents this error from occurring but, the sound doesn’t play.