public static IEnumerator Initialize() { yield return(AssetManifest.Initialize()); if (instance == null) { var go = new GameObject("AssetManager"); DontDestroyOnLoad(go); instance = go.AddComponent <AssetManager> (); } }
public static IEnumerator Initialize() { AssetBundleManager.SetDevelopmentAssetBundleServer(); var oper = AssetBundleManager.Initialize(); if (oper != null) { yield return(oper); var req = AssetBundleManager.LoadAssetAsync(ASSETBUNDLE_NAME, ASSET_NAME, typeof(AssetManifest)); if (req != null) { yield return(req); instance = req.GetAsset <AssetManifest> (); } } }