private void OnDestroy() { if (mAudioEngineSource != null) { mAudioEngineSource.Destroy(); } mThis.Free(); }
private void OnDestroy() { if (mAudioEngineSource != null) { mAudioEngineSource.Destroy(); mAudioEngineSource = null; } if (mSource != null) { mSource.Release(); mSource = null; } mThis.Free(); }