Sound is not working?

Hi Tomas,

Rather than taking screenshots for code, please copy/paste your code into your post and then apply the code formatting characters. This helps to improve readability and also enables those who offer to help you the ability to copy/paste parts of your code back to you with suggestions or corrections.

Regarding the issue, pop a Debug.Log statement in on the first line of your OnCollisionEnter2D method, run the game, do you see this message appear in the console when the ball collides with something?


See also;