Exemple #1
0
        public static IRes Create(string name, short assetType)
        {
            switch (assetType)
            {
            case eResType.kAssetBundle:
                return(AssetBundleRes.Allocate(name));

            case eResType.kABAsset:
                return(AssetRes.Allocate(name));

            case eResType.kABScene:
                return(SceneRes.Allocate(name));

            case eResType.kInternal:
                return(InternalRes.Allocate(name));

            case eResType.kNetImageRes:
                return(NetImageRes.Allocate(name));

            case eResType.kHotUpdateRes:
                return(HotUpdateRes.Allocate(name));

            default:
                Log.e("Invalid assetType :" + assetType);
                return(null);
            }
        }
Exemple #2
0
        public static AssetRes Allocate(string name)
        {
            AssetRes res = ObjectPool <AssetRes> .S.Allocate();

            if (res != null)
            {
                res.name = name;
                res.InitAssetBundleName();
            }
            return(res);
        }
Exemple #3
0
            public IRes CreateRes(string name)
            {
                AssetData data = AssetDataTable.S.GetAssetData(name);

                switch (data.assetType)
                {
                case eResType.kAssetBundle:
                    return(AssetBundleRes.Allocate(name));

                case eResType.kABAsset:
                    return(AssetRes.Allocate(name));

                case eResType.kABScene:
                    return(SceneRes.Allocate(name));

                default:
                    return(null);
                }
            }
Exemple #4
0
 public void OnSyncLoadFinish(IResLoader loader, AssetRes res)
 {
     //Log.w("OnSyncLoadFinish:AssetRes:" + res.name);
 }
 public virtual void OnAsyncLoadFinish(IResLoader loader, AssetRes res)
 {
 }
Exemple #6
0
 public void OnSyncLoadFinish(IResLoader loader, AssetRes res)
 {
 }