public static void GC(string who, bool asset, bool heap, object o) { if (Singleton <Character> .Instance != null && !Singleton <Character> .Instance.enableCharaLoadGCClear) { return; } Debug.Log("[GC] Requested by ", who); if (asset && !settings.lazyAssetGC) { #if !USE_OLD_ABM LoadedAssetBundle.Flush(true); #endif Resources.UnloadUnusedAssets(); } if (heap && !settings.lazyGC) { System.GC.Collect(); } }