예제 #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);
            }
        }
예제 #2
0
파일: AssetRes.cs 프로젝트: moto2002/Hunter
        public static AssetRes Allocate(string name)
        {
            AssetRes res = ObjectPool <AssetRes> .S.Allocate();

            if (res != null)
            {
                res.name = name;
                res.InitAssetBundleName();
            }
            return(res);
        }
예제 #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);
                }
            }
예제 #4
0
 public void OnSyncLoadFinish(IResLoader loader, AssetRes res)
 {
     //Log.w("OnSyncLoadFinish:AssetRes:" + res.name);
 }
예제 #5
0
 public virtual void OnAsyncLoadFinish(IResLoader loader, AssetRes res)
 {
 }
예제 #6
0
 public void OnSyncLoadFinish(IResLoader loader, AssetRes res)
 {
 }