Exemple #1
0
 /// <summary>
 /// 初始化
 /// </summary>
 public void Init(string url, string assetName, bool holdBundle)
 {
     _url          = url;
     _assetName    = assetName;
     _holdBundle   = holdBundle;
     _refCount     = 0;
     _loadingState = ELoadingState.None;
     _memoryState  = EMemoreyState.Temp;
 }
Exemple #2
0
        /// <summary>
        /// 销毁
        /// </summary>
        public void Destroy()
        {
            _url          = null;
            _refCount     = 0;
            _loadingState = ELoadingState.None;
            _unusedTick   = 0;

            if (_assetBundle != null)
            {
                _assetBundle.Unload(false);
            }
            _assetBundle = null;
            _memoryState = EMemoreyState.Temp;
            Cleanup();
        }