예제 #1
0
    private AssetBundleRequest m_cRequest;  //The load request

    /// <summary>
    /// Start async load the assetbundle
    /// </summary>
    /// <param name="asset"></param>
    /// <param name="resName"></param>
    /// <param name="callback"></param>
    public static AsyncLoader StartLoad(AssetBundle asset, string resName)
    {
        GameObject  obj    = new GameObject("AsyncLoader");
        AsyncLoader loader = obj.AddComponent <AsyncLoader>();

        loader.StartCoroutine(loader.GoLoader(asset, resName));
        return(loader);
    }