示例#1
0
 private static void CleanupAdoptedEvents()
 {
     if (Time.time - FMODCommon.lastCleanupTime >= 1f)
     {
         FMODCommon.lastCleanupTime = Time.time;
         FMODCommon.CleanupOneshotEvents(FMODCommon.adoptedEvents, true);
         if (FMODCommon.adoptedEvents.Count == 0)
         {
             FMOD_Listener.FMODCommonUpdate = null;
         }
     }
 }
示例#2
0
 private void cleanupOneshotEvents()
 {
     FMODCommon.CleanupOneshotEvents(this.oneshotEvents, true);
 }
 private void CleanupOneshotEvents()
 {
     FMODCommon.CleanupOneshotEvents(this.oneshotEvents, this.stopOneshotsAfterTimeout);
 }