private void OnDestroy() { if (assetCat != null) assetCat.SubRefCount(1, true); else LogCat.LogErrorFormat("{0} destroy but ont find assetCat", name); }
public void ReleasePreAssetCat() { if (preAssetCat != null) { if (!preAssetCat.IsLoadSuccess()) { preAssetCat.RemoveCallback(this); } preAssetCat.SubRefCount(1, true); } preAssetPath = null; preAssetCat = null; }
public void ReleaseCurAssetCat() { if (curAssetCat != null) { if (!curAssetCat.IsLoadSuccess()) { curAssetCat.RemoveCallback(this); } curAssetCat.SubRefCount(1, true); } curAssetPath = null; curAssetCat = null; }
public void Destroy() { refCount = 0; assetCat.SubRefCount(1, true); }