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); } }
public static AssetRes Allocate(string name) { AssetRes res = ObjectPool <AssetRes> .S.Allocate(); if (res != null) { res.name = name; res.InitAssetBundleName(); } return(res); }
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); } }
public void OnSyncLoadFinish(IResLoader loader, AssetRes res) { //Log.w("OnSyncLoadFinish:AssetRes:" + res.name); }
public virtual void OnAsyncLoadFinish(IResLoader loader, AssetRes res) { }
public void OnSyncLoadFinish(IResLoader loader, AssetRes res) { }