void Awake(){
if(player == null){ // try and get it manually if player forgot to assign an AudioSource
player = GameObject.Find("AudioSource").GetComponent<AudioSource>();
}
}
public AudioClip gameOverSoundFx;
player.PlayOneShot(<pre name="code" class="html">gameOverSoundFx
);