protected override void Release() { if (assetBundle != null) { assetBundle.Unload(true); Asset = null; mResLoader.Release(); mResLoader = null; } ResManager.Instance.SharedLoadedRes.Remove(this); }
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; }