Пример #1
0
        protected override void Release()
        {
            if (assetBundle != null)
            {
                assetBundle.Unload(true);
                Asset = null;

                mResLoader.Release();
                mResLoader = null;
            }

            ResManager.Instance.SharedLoadedRes.Remove(this);
        }
Пример #2
0
        protected override void Release()
        {
            if (Asset is GameObject)
            {
            }
            else
            {
                Resources.UnloadAsset(Asset);
            }
            Asset = null;
            mResLoader.Release();
            mResLoader = null;

            ResManager.Instance.SharedLoadedRes.Remove(this);
        }
 private void OnDestroy()
 {
     mResLoader.Release();
     mResLoader = null;
 }