예제 #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
        public static InternalRes Allocate(string name)
        {
            InternalRes res = ObjectPool <InternalRes> .S.Allocate();

            if (res != null)
            {
                res.name = name;
            }
            return(res);
        }
예제 #3
0
 public void OnSyncLoadFinish(IResLoader loader, InternalRes res)
 {
     //Log.w("OnSyncLoadFinish:InternalRes:" + res.name);
 }
예제 #4
0
 public virtual void OnAsyncLoadFinish(IResLoader loader, InternalRes res)
 {
 }
예제 #5
0
 public void OnSyncLoadFinish(IResLoader loader, InternalRes res)
 {
 }