Month: March 2017

Playing A Sound in Unity

Here’s a simple way to play a sound in Unity. 1. Add something like this to the declaration section of your script. public AudioSource audioSourceExplosion; 2. Add this line of code where you want to play the sound. audioSourceExplosion.Play(); 3. NOTE : What I┬áhave called audioSourceExplosion here is the name of the variable and of […]