private void OnDestroy() { FMODCommon.ReleaseIfValid(this._snapshotInstance, STOP_MODE.IMMEDIATE); if (InsideCheck._instance == this) { InsideCheck._instance = null; } }
private void OnDisable() { if (BoltNetwork.isClient) { return; } AstarPath.OnGraphsUpdated = (OnScanDelegate)Delegate.Remove(AstarPath.OnGraphsUpdated, new OnScanDelegate(this.RecalculatePath)); this.StopMusic(); FMODCommon.ReleaseIfValid(this.SurfaceMusic, STOP_MODE.IMMEDIATE); FMODCommon.ReleaseIfValid(this.CaveMusic, STOP_MODE.IMMEDIATE); }
public void StopSounds() { this.pEvents.stopFMODEvents(); if (base.transform && base.transform.parent) { foreach (FMOD_AnimationEventHandler fmod_AnimationEventHandler in base.transform.parent.GetComponentsInChildren <FMOD_AnimationEventHandler>()) { fmod_AnimationEventHandler.enabled = false; } } FMODCommon.ReleaseIfValid(this.attendantDialogueEvent, STOP_MODE.ALLOWFADEOUT); this.attendantDialogueEvent = null; this.StopEventEmitter(this.SFX_inplane); this.StopEventEmitter(this.SFX_TakeTimmy); PlaneCrashAudioState.Disable(); }
private void OnDisable() { this.StopMusic(); FMODCommon.ReleaseIfValid(this.SurfaceMusic, STOP_MODE.IMMEDIATE); FMODCommon.ReleaseIfValid(this.CaveMusic, STOP_MODE.IMMEDIATE); }
private void OnDestroy() { FMODCommon.ReleaseIfValid(this.BurningEventInstance, STOP_MODE.IMMEDIATE); }
public void stopFMODEvents() { FMODCommon.ReleaseIfValid(this.hitGroundEvent, STOP_MODE.ALLOWFADEOUT); this.hitGroundEvent = null; }
public void PlayAfterStorm() { FMODCommon.ReleaseIfValid(this.afterStormInstance, STOP_MODE.ALLOWFADEOUT); this.afterStormInstance = FMODCommon.PlayOneshot("event:/ambient/amb_streamed/after_storm", base.transform); }