示例#1
0
        public override void LoadData()
        {
            Debug.Log("xxxx");
            Debug.LogError("MainSceneManager|do|nothing");

            StartCoroutine(KAssetBundle.LoadPersistentAB(new string[] { "View/mainwindow" }, onSucc, onError));
        }
示例#2
0
        /// <summary>
        /// 切换场景的统一调用,简化切换场景的代码
        /// </summary>
        public static void SwitchScene(string[] preloadABs, string sceneName)
        {
            KSceneManager ks = GetCurKScene();

            ks.StartCoroutine(KAssetBundle.LoadPersistentAB(preloadABs, () => {
                SceneManager.LoadSceneAsync(sceneName);
            }));
        }
 public override void LoadData()
 {
     StartCoroutine(KAssetBundle.LoadPersistentAB(new string[] {
         KAssetBundle.GetViewPah(typeof(LoadingProgressWindow).Name)
     }, onSucc));
 }