title: Unity audioclip load errror on WP8 and not on Android
body: <p>I developed a game using Unity 2d for Android and WP8. The games is about a player that goes through a level eating orange. When the player collides with an orange it plays a soundclip.</p>
  
  <p>So, when you play the first time, there is no matter, all sounds play well. Then when you choose go to menu option to start again the level, the game crashes at the first collide. If then you chose menu, and reload the level, it works fine. 
  So it works well once , then fails once, then works well once, and go on the same.</p>
  
  <p>This erros happens in WP8 and not in Android.</p>
  
  <p>The problem is in WP8 with this code:</p>
  
  <pre><code>void OnTriggerEnter2D(Collider2D collider){
          if (collider.tag == "Player") {
              NotificationCenter.DefaultCenter ().PostNotification (this, "IncrementarPuntos", this.puntosGanados);
              AudioSource.PlayClipAtPoint (itemSoundClip, Camera.main.transform.position, itemSoundVolume);               
              Destroy (this.gameObject);
          }
  
  }
  </code></pre>
  
  <p>the line with error is </p>
  
  <pre><code>AudioSource.PlayClipAtPoint (itemSoundClip, Camera.main.transform.position, itemSoundVolume);
  </code></pre>
  
  <p>because itemSoundClip is null.</p>
  
  <p>I dont understand why itemSoundClip sometimes goes null.</p>
  
  <p>this is the exception</p>
  
  <pre><code>    $exception  {System.NullReferenceException: Object reference not set to an instance of an object.
     at UnityEngine.AudioSource.PlayClipAtPoint(AudioClip clip, Vector3 position, Single volume)
     at Item.OnTriggerEnter2D(Collider2D collider)
     at Item.$Invoke0(Int64 instance, Int64* args)
     at UnityEngine.Internal.$MethodUtility.InvokeMethod(Int64 instance, Int64* args, IntPtr method)} System.Exception {System.NullReferenceException}
  </code></pre>
  
  <p>Something important to know.</p>
  
  <p>My orange item is a prefab. This item have a script which I add a clip sound(itemSoundClip)</p>
  
  <p>In my scene I use a Generator script which takes that orange item, and creates instances of it in a random time with this line</p>
  
  <pre><code>Instantiate (obj [Random.Range (0, obj.Length)], transform.position, Quaternion.identity);          
  </code></pre>
  
  <p>Maybe when Instantiates ocurrs, the item cant load the clip?</p>