Exemple #1
0
    public override bool Load(Priority priority, out bool process)
    {
        switch (GameSetting.Instance.runType)
        {
        case RunType.PATCHER_SA_PS:
            AssetBundleLoader.LoadSceneAsync(sceneName, onLoadFinishCallBack);
            break;

        case RunType.NOPATCHER_SA:
            AssetBundleLoader.LoadSceneAsync(sceneName, onLoadFinishCallBack);
            break;

        case RunType.NOPATCHER_RES:
            ResourcesLoader.LoadScene(sceneName, onLoadFinishCallBack);
            break;
        }
        process = true;
        return(true);
    }
Exemple #2
0
 ///<summary>
 /// 从配置获取加载cdn的url地址
 ///</summary>
 public void LoadBeginScene()
 {
     ManifestManager.LoadUpdateFileManifest(null);
     SetSliderProgress(Localization.Get("main_enter_game"), 5, 1);
     ResourcesLoader.LoadScene(SCENE_ASSETBUNDLE_NAME, SCENE_NAME, null, null, null, true, UnityEngine.SceneManagement.LoadSceneMode.Single);
 }