AudioSource.playOnAwake Manual     Reference     Scripting  
Scripting > Runtime Classes > AudioSource
AudioSource.playOnAwake

var playOnAwake : bool

Description

If set to true, the audio source will automatically start playing on awake

if(! audio.playOnAwake) {
audio.Play(); // Play the clip if it wasn't set to play on awake
}