Beispiel #1
0
    //  public List<string> needLoadImageNameFromServerl;
    //  public List<string> needLoadImageUrleFromServerl;

    /// <summary>
    /// loadLocalScene表示是否加载本地场景否则从服务器上loadAssetBundle
    /// </summary>
    /// <param name="projectid"></param>
    /// <param name="loadLocalScene"></param>

    public void LoadServerProjectInfo(string projectInfoServerURL, string assetBundleURL, string projectid, string sceneLoadMode)
    {
//      defaultGUI.DisplayDefaultGUI();
        pathAndURL.assetBundleServerUrl = assetBundleURL;
        pathAndURL.projectInfoServerUrl = projectInfoServerURL;
        pathAndURL.SetProjectPath(projectid);

        appBridge.appProjectInfo.sceneLoadMode = sceneLoadMode;

        //Ar模式
        if (sceneLoadMode == "8")
        {
            assetBundleManager.LoopLoadCommonAssetBundleForAR();
        }
        else
        {
            hasLocalCached = CheckHasLocalCached(projectid);

            onServerProjectInfoLoaded = new OnServerProjectInfoLoaded();
            onServerProjectInfoLoaded.AddListener(assetBundleManager.LoadProjcetAssetBundles);

            GetProjectInfoFromServer(projectid);
        }



        //       if (loadLocalScene)
        //        {
        //            sceneInteractiveManger.StartLoadLocalScene();
        //        }
        //        else
        //        {

        //       }
    }
    //  public List<string> needLoadImageNameFromServerl;
    //  public List<string> needLoadImageUrleFromServerl;

    /// <summary>
    /// loadLocalScene表示是否加载本地场景否则从服务器上loadAssetBundle
    /// </summary>
    /// <param name="projectid"></param>
    /// <param name="loadLocalScene"></param>

    public void LoadServerProjectInfo(string rojectInfoServerURL, string assetBundleURL, string projectid, string sceneLoadMode, bool loadLocalScene = false)
    {
        pathAndURL.assetBundleServerUrl = assetBundleURL;

        pathAndURL.projectInfoServerUrl = rojectInfoServerURL;

        appBridge.appProjectInfo.sceneLoadMode = sceneLoadMode;

        onServerProjectInfoLoaded = new OnServerProjectInfoLoaded();

        if (loadLocalScene)
        {
            sceneInteractiveManger.StartLoadLocalScene();
        }
        else
        {
            hasLocalCached = CheckHasLocalCached(projectid);
            onServerProjectInfoLoaded.AddListener(assetBundleManager.LoadProjcetAssetBundles);
            pathAndURL.SetProjectPath(projectid);
            GetProjectInfoFromServer(projectid);
        }
    }