audio.PlayOneShot() isnt working

var Tex2 : Texture2D;
var lx1 : AudioClip;
function Update(){

if(Input.GetKeyDown(KeyCode.Space)){
       var red2 = GameObject.Find("Red");
       audio.PlayOneShot(lx1);
       Debug.Log("Click");
       Destroy(red2);
       this.guiTexture.texture = Tex2;
       
     this.gameObject.Find("Camera").SendMessage ("Reload");
       Destroy(gameObject);
       }
       
}

Pretty simple this one . I have an audio clip called lx1 . Its meant to play when I hit space . Everything else works , it logs click to the console :confused: its a 2d sound and its attached to the object but it still doesnt play ?

Could someone help me out please

There are few things to check for:

  • Check if your system’s volume is not muted and is set to a clearly audible volume level.
  • Check if your Sound toggle from Scene window is turned On.
  • You have an Audio Listener attached to one of your camera.