Exemple #1
0
        /// <summary>
        /// 低内存时的处理逻辑
        /// </summary>
        protected virtual void OnLowMemory()
        {
            Log.Warning("Low memory reported...");
            // TODO:释放对象池
            // TODO:释放加载的资源
            AssetsManger.Clear();

            Resources.UnloadUnusedAssets();
            System.GC.Collect();
        }
Exemple #2
0
        public void OnClear()
        {
            OnMessage("数据清除完毕");
            OnProgress(0);

            Reset();

            _downloader.Clear();
            _status         = UStatus.Idle;
            _netWorkChanged = false;

            AssetsManger.Clear();

            listener?.OnClear();

            Versions.Clear();
        }