/// <summary> /// Received when an AudioClip stops its execution /// </summary> /// <param name="target">Object sound that dispatched the event</param> private void SoundManager_OnFinish(Sound target) { sounds.Remove(target); Destroy(target.gameObject); }
/// <summary> /// Received when an AudioClip starts its execution /// </summary> /// <param name="target">Object sound that dispatched the event</param> private void SoundManager_OnStart(Sound target) { //throw new System.NotImplementedException(); }