[Solved] Benefit of this lesson over the Block Breaker sounds lesson?

Just a quick question. I didn’t learn anything new in this lesson compared to Block Breaker lesson 87, but it did leave me with a question…

In the introductory slide it mentions

We’ll look at playing sounds independently of an object, so that we can play a death sound for the enemies.

I didn’t see a difference between the AudioSource.PlayClipAtPoint() calls made during the Fire() methods and the call made when the enemy ship gets destroyed (except a different audio file is used of course). Was there a difference?

I hoped there would be an explanation of “Independently of an object”. I’m guessing this was supposed to explain that we can play a sound and then destroy the GameObject without the sound stopping. Is there another way of playing a sound which is dependent of an object?

Phil

I finally found the answer in the quiz at the end of this section!

If you use AudioSource.Play() instead of AudioSource.PlayClipAtPoint() then apparently the sound will stop if the containing object gets destroyed.

Unfortunately I didn’t notice this distinction being discussed during this lesson.

Hope this helps someone who also missed this precision.

Phil