public void ReleaseAsset(string assetPath, bool delNow) { if (null == assetPath) { return; } BundleHolder holder = GetExistHolder(assetPath); if (null != holder) { holder.UnRef(delNow); } }
public void ReleaseAsset(string assetPath, bool delNow, int releaseCount = 1) { if (string.IsNullOrEmpty(assetPath)) { return; } BundleHolder holder = GetExistHolder(assetPath); if (null != holder) { for (int i = 0; i < releaseCount; ++i) { holder.UnRef(delNow); } } }