static int Initialize(IntPtr L)
    {
        LuaScriptMgr.CheckArgsCount(L, 1);
        string arg0 = LuaScriptMgr.GetLuaString(L, 1);
        AssetBundleManifestOperation o = ResourceManager.Initialize(arg0);

        LuaScriptMgr.Push(L, o);
        return(1);
    }
    // Load AssetBundleManifest.
    static public AssetBundleManifestOperation Initialize(string manifestAssetBundleName)
    {
        //var go = new GameObject("AssetBundleManager", typeof(ResourceManager));

        LoadAssetBundle(manifestAssetBundleName, true);
        var operation = new AssetBundleManifestOperation(manifestAssetBundleName, "AssetBundleManifest", typeof(AssetBundleManifest));

        m_InProgressOperations.Add(operation);
        return(operation);
    }
Esempio n. 3
0
    IEnumerator OnLoadManifest(string manifestName, Action func)
    {
        DownLoadAssetBundle(manifestName, true);
        var operation = new AssetBundleManifestOperation(manifestName, "AssetBundleManifest", typeof(AssetBundleManifest));

        _bundleOperations.Add(operation);
        yield return(this.StartCoroutine(operation));

        if (func != null)
        {
            func();
        }
    }
        // Load AssetBundleManifest.
        public static AssetBundleManifestOperation Initialize(string manifestAssetBundleName)
        {
            var go = new GameObject("AssetBundleManager", typeof(ResourceManager));

            LoadAssetBundle(manifestAssetBundleName, true);
            var operation = new AssetBundleManifestOperation(manifestAssetBundleName, "AssetBundleManifest", typeof(AssetBundleManifest));
            m_InProgressOperations.Add(operation);
            return operation;
        }
 // Load AssetBundleManifest.
 public static AssetBundleManifestOperation Initialize(string manifestAssetBundleName)
 {
     LoadAssetBundle(manifestAssetBundleName, true);
     var operation = new AssetBundleManifestOperation(manifestAssetBundleName, "AssetBundleManifest", typeof(AssetBundleManifest));
     m_InProgressOperations.Add(operation);
     return operation;
 }
        public static AssetBundleManifestOperation Initialize(string manifestAssetBundleName)
        {
            var go = new GameObject("[AssetBundleManager]");
            DontDestroyOnLoad(go);

            // load asset bundle
            LoadAssetBundle(manifestAssetBundleName, true);

            var operation = new AssetBundleManifestOperation(manifestAssetBundleName, "AssetBundleManifest", typeof(AssetBundleManifest));
            _operations.Add(operation);

            return operation;
        }