示例#1
0
 private void OnDestroy()
 {
     FMODCommon.ReleaseIfValid(this._snapshotInstance, STOP_MODE.IMMEDIATE);
     if (InsideCheck._instance == this)
     {
         InsideCheck._instance = null;
     }
 }
示例#2
0
 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);
 }
示例#3
0
 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();
 }
示例#4
0
 private void OnDisable()
 {
     this.StopMusic();
     FMODCommon.ReleaseIfValid(this.SurfaceMusic, STOP_MODE.IMMEDIATE);
     FMODCommon.ReleaseIfValid(this.CaveMusic, STOP_MODE.IMMEDIATE);
 }
示例#5
0
 private void OnDestroy()
 {
     FMODCommon.ReleaseIfValid(this.BurningEventInstance, STOP_MODE.IMMEDIATE);
 }
示例#6
0
 public void stopFMODEvents()
 {
     FMODCommon.ReleaseIfValid(this.hitGroundEvent, STOP_MODE.ALLOWFADEOUT);
     this.hitGroundEvent = null;
 }
示例#7
0
 public void PlayAfterStorm()
 {
     FMODCommon.ReleaseIfValid(this.afterStormInstance, STOP_MODE.ALLOWFADEOUT);
     this.afterStormInstance = FMODCommon.PlayOneshot("event:/ambient/amb_streamed/after_storm", base.transform);
 }