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; } } }
private void cleanupOneshotEvents() { FMODCommon.CleanupOneshotEvents(this.oneshotEvents, true); }
private void CleanupOneshotEvents() { FMODCommon.CleanupOneshotEvents(this.oneshotEvents, this.stopOneshotsAfterTimeout); }