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); } }