public void Stop_Local_Emitter() { event_Description.releaseAllInstances(); event_Instance.stop(FMOD.Studio.STOP_MODE.ALLOWFADEOUT); RuntimeManager.DetachInstanceFromGameObject(event_Instance); event_Instance.clearHandle(); _isPlaying = false; }
void OnDestroy() { if (!isQuitting) { HandleGameEvent(EmitterGameEvent.ObjectDestroy); if (instance.isValid()) { RuntimeManager.DetachInstanceFromGameObject(instance); } if (Preload) { eventDescription.unloadSampleData(); } } }