public static GameObject LoadAssetImmediate(string assetBundleName, string assetName) { string text = Path.Combine(AssetBundleManager.GetCreateFilePath(), "AssetBundles/" + assetBundleName); AssetBundle assetBundle = null; if (assetBundle == null) { Debug.LogError("## Failed to load AssetBundle: " + assetBundleName); return null; } return assetBundle.LoadAsset<GameObject>(assetName); }