public static void Enqueue(SceneLoadState scene) { NetLog.Debug("Loading {0} ({1})", scene, AscensionNetworkInternal.GetSceneName(scene.Scene.Index)); delay = 0; LoadOps.AddLast(new LoadOp { scene = scene }); }
void Load() { // notify core of loading Core.SceneLoadBegin(LoadOps.First.scene); // load level SceneManager.LoadSceneAsync(AscensionNetworkInternal.GetSceneName(LoadOps.First.scene.Scene.Index)); // we are done! Done(); }
void LoadAsync() { if (LoadOps.First.async == null) { // notify core of loading Core.SceneLoadBegin(LoadOps.First.scene); // begin new async load LoadOps.First.async = SceneManager.LoadSceneAsync(AscensionNetworkInternal.GetSceneName(LoadOps.First.scene.Scene.Index)); } else { if (LoadOps.First.async.isDone) { Done(); } } }