コード例 #1
0
 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;
 }
コード例 #2
0
        void OnDestroy()
        {
            if (!isQuitting)
            {
                HandleGameEvent(EmitterGameEvent.ObjectDestroy);
                if (instance.isValid())
                {
                    RuntimeManager.DetachInstanceFromGameObject(instance);
                }

                if (Preload)
                {
                    eventDescription.unloadSampleData();
                }
            }
        }