title: audio.PlayOneShot doesn't work in Unity
body: <p>I want  my game to play sound when a player collides with coin, but the sound doesn't play. I don't receive any errors. I attached sound to Audio Source and script in Unity.</p>
  
  <pre><code>using UnityEngine;
  
  [RequireComponent(typeof(AudioSource))]
  public class TriggerCoin : MonoBehaviour
  {
  
      //TODO
      //Counter of collected coins
  
      public AudioClip coinSound;
      new AudioSource audio;
  
      void Start()
      {
          audio = GetComponent&lt;AudioSource&gt;();
      }
  
  
      void Update()
      {
  
      }
  
      void OnTriggerEnter2D(Collider2D other)
      {
          GameObject gObj = other.gameObject;
  
          if (gObj.CompareTag("Player"))
              {
                  Debug.Log("You picked up coin!");
                  audio.PlayOneShot(coinSound, 0.8f);
                  Destroy(gameObject);      
              }
      }
  }
  </code></pre>