Example #1
0
 public static void UnPreload(string path)
 {
     if (FMOD_Listener.sPreloadComplete)
     {
         FMOD_StudioSystem.UnPreloadEvent(path);
     }
     else if (FMOD_Listener.sPreloadRequests.ContainsKey(path))
     {
         Dictionary <string, int> dictionary;
         Dictionary <string, int> expr_2A = dictionary = FMOD_Listener.sPreloadRequests;
         int num = dictionary[path];
         expr_2A[path] = num - 1;
     }
     else
     {
         FMOD_Listener.sPreloadRequests[path] = -1;
     }
 }
Example #2
0
 public override void OnDisable()
 {
     SuitCase.GlobalAmount--;
     FMOD_StudioSystem.UnPreloadEvent(this.OpenEvent);
     this.preloadComplete = false;
 }
Example #3
0
 public static void UnPreloadEvent(string path)
 {
     FMOD_StudioSystem.UnPreloadEvent(path, 1);
 }