Does it matter if Destroy(gameObject) is called at the top of the OnCollisionEnter method? I believe during lesson 64 on PlayClipAtPoint, Rick specifically put PlayClipAtPoint above Destroy(gameObject), so it could be called before the object and consequently, the script on the object, were destroyed. Here he calls level.BlocksDestroyed(); after calling Destroy(gameObject). Would this mean the block is destroyed before the rest of the script can run and decrease the remaining block count? I tried running the code shown and it still plays the sound even though it is calling to destroy the block that has the attached sound. If there was a significant amount of code after calling Destroy(gameObject) would all of it still run? Or would the object be destroyed before all of it could?
Thanks!