void OnDisable() { if (_isApplicationQuitting) //so that the DeRegister won't be called after exiting play mode and throw exceptions. { return; } AudioService.DeRegisterAudioUser(this); }