Esempio n. 1
0
 /// <summary>
 /// 一般只有Addtive方式加载的Scene需要使用到异步Unload
 /// </summary>
 /// <param name="sceneName"></param>
 /// <param name="callback"></param>
 public static void UnloadSceneAsync(string sceneName, SceneResolveLoader.OnUnloadScene callback = null)
 {
     SceneResolveLoader.UnloadSceneAsync(sceneName, callback);
 }
Esempio n. 2
0
        public static SceneResolveLoader LoadSceneAsync(string sceneName, string package = null, LoadSceneMode mode = LoadSceneMode.Single, AbstractResourceLoader.LoaderDelgate callback = null)
        {
            var request = SceneResolveLoader.Load(sceneName, package, mode, callback);

            return(request);
        }