public void Start(Scene scene, IProgressingYieldInstruction innerOp) { _scene = scene; _op = innerOp; GameLoopEntry.Hook.StartRadicalCoroutine(this.WaitForLoadRoutine(), RadicalCoroutineDisableMode.Default); }
private static void PurgeLoadedScene() { if (_currentScene != null) { _currentScene.SetLoaded(false); _currentScene = null; } //_loadedScenes = null; }
private static void RegisterLoadedScene(Scene scene) { if (_currentScene != null) PurgeLoadedScene(); _currentScene = scene; _currentScene.SetLoaded(true); //var lst = new List<Scene>(); //lst.Add(_currentScene); //if(_currentScene is SceneContainer) //{ // lst.AddRange((_currentScene as SceneContainer).GetAllChildren()); //} //_loadedScenes = lst.ToArray(); }
public SceneLoadOptions(Scene scene) { _scene = scene; }