public static void UnloadAssets(OnUnloadFinished finishedCallback) { if (loader != null) { loader.UnloadAssets(finishedCallback); } }
public void UnloadAssets(OnUnloadFinished finishedCallback) { unloadFinishedCallbacks.Add(finishedCallback); if (unloadOperation != null) { return; } GC.Collect(); GC.Collect(); unloadOperation = Resources.UnloadUnusedAssets(); UnloadUnusedAssets(); }