title: Unity3d AudioClip played with AudioSource not working properly
body: <p>So I did (in Unity editor):</p>
  
  <p><code>GameObject -&gt; Create Empty</code></p>
  
  <p>the I dragged my Avatar.cs (the main player animation <code>MonoBehaviour</code>) onto the gamefile.</p>
  
  <p>Inside Avatar.cs I added:</p>
  
  <p><code>public AudioClip audioClipJump;</code></p>
  
  <p>and</p>
  
  <pre><code>// this is where the jump animation gets played
  audio.PlayOneShot(audioClipJump);
  </code></pre>
  
  <p>Back in Unity editor, I see the component <code>Audio Clip Jump</code> inside GameObject.Avatar, and I drag and dropped the .wav file onto it.</p>
  
  <p>Then I go into the game, and the jump animation plays, but I have no sound :(</p>
  
  <p>here is a screenshot of the Unity editor:</p>
  
  <p><img src="https://i.stack.imgur.com/7vEKm.png" alt="enter image description here"></p>
  
  <p>and like I said, just the 2 lines in the C# file</p>