PlaySoundAtInterval

Author: Will Preston (Sigma)

Description
This script allows for a sound to be played at intervals specified by the user. NOTE: The script does not take into account the time length of the sound; likewise, if you wanted to play an 11-second sound every 60 seconds, you would set the interval to be 71 (60sec + 11sec).

Usage
Place this script in a C# file named PlaySoundAtInterval.cs, and drag it onto the object with the AudioSource you wish for it to affect. The audio source does not have to have any sound loaded into it, this script handles that as well. You may encounter problems if the AudioSource has looped playback and/or Play On Awake enabled, so it is recommended that you disable those options for the AudioSource in question.