/// <summary> /// 低内存时的处理逻辑 /// </summary> protected virtual void OnLowMemory() { Log.Warning("Low memory reported..."); // TODO:释放对象池 // TODO:释放加载的资源 AssetsManger.Clear(); Resources.UnloadUnusedAssets(); System.GC.Collect(); }
public void OnClear() { OnMessage("数据清除完毕"); OnProgress(0); Reset(); _downloader.Clear(); _status = UStatus.Idle; _netWorkChanged = false; AssetsManger.Clear(); listener?.OnClear(); Versions.Clear(); }