Example #1
0
    ///--------------------------------------------------------------------------------------------
    /// <summary>
    /// 异步加载资源
    /// </summary>
    ///--------------------------------------------------------------------------------------------
    public bool LoadAsset()
    {
        if (loading == true)
        {
            return(false);
        }

        loading = true;
        CBundleManager BundleMgr = LuaFramework.LuaHelper.GetResManager();

        if (BundleMgr != null)
        {
            BundleMgr.StartCoroutine(_loaderAsset());
        }
        return(true);
    }