Example #1
0
 private void OnDisable()
 {
     if (this.loopingEvents != null)
     {
         foreach (FMODCommon.LoopingEventInfo current in this.loopingEvents)
         {
             UnityUtil.ERRCHECK(current.instance.stop(STOP_MODE.ALLOWFADEOUT));
             UnityUtil.ERRCHECK(current.instance.release());
         }
         this.loopingEvents.Clear();
     }
     FMODCommon.AdoptOneshotEvents(this.oneshotEvents);
 }