Esempio n. 1
0
        public void ReleaseAsset(string assetPath, bool delNow)
        {
            if (null == assetPath)
            {
                return;
            }
            BundleHolder holder = GetExistHolder(assetPath);

            if (null != holder)
            {
                holder.UnRef(delNow);
            }
        }
Esempio n. 2
0
        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);
                }
            }
        }