Esempio n. 1
0
 private IEnumerator PlaySound()
 {
     audioSource.Play();
     while (audioSource.isPlaying)
     {
         yield return(new WaitForEndOfFrame());
     }
     gemCounter.CountGem();
     Destroy(this.gameObject);
 }