Beispiel #1
0
    /// <summary>
    /// 开始游戏热更新
    /// </summary>
    /// <param name="productId"></param>
    /// <param name="luaFunc"></param>
    public static void DOGameHotUpdateInLua(int productId, LuaFunction luaFunc)
    {
        HotUpdateMgr hpMgr = HotUpdateMgr.Instance;

        hpMgr.DoHotUpdateComplete = delegate
        {
            if (luaFunc != null)
            {
                luaFunc.Call();
            }
        };

        hpMgr.DOGameHotUpdate(productId, true);
    }
Beispiel #2
0
    public static void DOGameHotUpdateInCS(int productId, LuaFunction luaFunc)
    {
        HotUpdateMgr hpMgr = HotUpdateMgr.Instance;

        hpMgr.DoHotUpdateComplete = delegate
        {
            if (luaFunc != null)
            {
                luaFunc.Call();
            }
        };

        // 显示热更新界面
        UIManager.Instance.ShowWindow(UIWindowID.WINDOWID_HOT_RES_LOADING);

        hpMgr.DOGameHotUpdate(productId, false);
    }
Beispiel #3
0
    // 初始cdn服务器url地址
    public static void InitCdnServerUrl(string url)
    {
        HotUpdateMgr hpMgr = HotUpdateMgr.Instance;

        hpMgr.CdnServerURL = url;
    }