public AbstractLoader() { _loadParams = new Dictionary <string, object>(); _stats = new LoadStats(); _state = LoadState.STOPED; InitParams(); }
/// <summary> /// 销毁 /// </summary> public virtual void Dispose() { Stop(); onDispose(); if (_task != null) { App.objectPoolManager.ReleaseObject(_task); _task = null; } _loadParams = null; _stats = null; _state = LoadState.STOPED; _data = null; _asset = null; _startCallback = null; _stopCallback = null; _completeCallback = null; _errorCallback = null; _progressCallback = null; }