public static bool ParseAsset(string url, AssetConfig config) { switch (config.type) { case AssetType.Lua: return(AssetPool.ParseLuaAsset(url)); case AssetType.Prefab: return(AssetPool.ParsePrefabAsset(url, config.isCacheInMemory)); case AssetType.Image: return(AssetPool.ParseImageAsset(url, config.isCacheInMemory)); case AssetType.Assetbundle: return(AssetPool.ParseAssetBundle(url)); default: return(false); } }