9 using System.Collections;
11 namespace Valve.VR.InteractionSystem
16 public bool destroyAfterPlayOnce =
true;
17 private AudioSource thisAudioSource;
23 thisAudioSource = GetComponent<AudioSource>();
32 gameObject.transform.parent = null;
34 if ( destroyAfterPlayOnce )
35 Destroy( gameObject, thisAudioSource.clip.length );