Exemplo n.º 1
0
        /// <summary>
        /// check load from cache
        /// </summary>
        /// <param name="req"></param>
        static bool CheckLoadAssetAsync(CRequest req)
        {
#if UNITY_EDITOR
            if (SimulateAssetBundleInEditor && CacheManager.SetRequestDataFromPrefab(req))
            {
                loadingAssetQueue.Add(req);
                return(true);
            }
#endif

            ABDelayUnloadManager.CheckRemove(req.keyHashCode);
            if (CacheManager.Contains(req.keyHashCode))
            {
                AddReqToAssetCallBackList(req);
                return(true);
            }
            return(false);
        }