Exemple #1
0
 public void ReloadContent()
 {
     LongEventHandler.ExecuteWhenFinished(delegate
     {
         audioClips.ReloadAll();
         textures.ReloadAll();
         strings.ReloadAll();
     });
     assemblies.ReloadAll();
 }
Exemple #2
0
 private void ReloadContentInt()
 {
     DeepProfiler.Start("Reload audio clips");
     try
     {
         audioClips.ReloadAll();
     }
     finally
     {
         DeepProfiler.End();
     }
     DeepProfiler.Start("Reload textures");
     try
     {
         textures.ReloadAll();
     }
     finally
     {
         DeepProfiler.End();
     }
     DeepProfiler.Start("Reload strings");
     try
     {
         strings.ReloadAll();
     }
     finally
     {
         DeepProfiler.End();
     }
     DeepProfiler.Start("Reload asset bundles");
     try
     {
         assetBundles.ReloadAll();
         allAssetNamesInBundleCached = null;
     }
     finally
     {
         DeepProfiler.End();
     }
 }