Ejemplo n.º 1
0
        /// <summary>
        /// 某个资源包是否存在内存中
        /// </summary>
        private bool TryGetAssetBundle(string assetbundleName, out AbstractAssetBundleRef abRef)
        {
            abRef = null;

            if (string.IsNullOrEmpty(assetbundleName))
            {
                return(false);
            }

            if (m_LoadedAssetBundles.TryGetValue(assetbundleName, out abRef))
            {
                return(!abRef.IsEmpty());
            }
            return(false);
        }
Ejemplo n.º 2
0
 public static int Compare(AbstractAssetBundleRef a, AbstractAssetBundleRef b)
 {
     return((int)(a.lastLoaded * 1000000 - b.lastLoaded * 1000000));
 }
Ejemplo n.º 3
0
 public void Reset()
 {
     abRef    = null;
     md5      = null;
     transfer = null;
 }