using UnityEngine; //thomas09 //edited script to not destroy the object now. Since it is pooled. public class AudioAutoDestroy : MonoBehaviour { private AudioSource audioSource; private void Awake() => audioSource = GetComponent(); private void Update() { if (!audioSource.isPlaying) { AudioManager.Instance.DisableSource(audioSource); } } }