Ejemplo n.º 1
0
        public static IEnumerator Initialize()
        {
            yield return(AssetManifest.Initialize());

            if (instance == null)
            {
                var go = new GameObject("AssetManager");
                DontDestroyOnLoad(go);
                instance = go.AddComponent <AssetManager> ();
            }
        }
Ejemplo n.º 2
0
        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> ();
                }
            }
        }