public void LoadScene(Scene scene) { if (scene != null) { if (ActiveScene != null) { UnloadScene(); } activeScene = scene; activeScene.Initialize(); } }
public void LoadScene(Scene newScene) { if (newScene != null) { if (activeScene != null) { UnloadScene(); } activeScene = newScene; activeScene.Initialize(); } }
/// <summary> /// Adds a scene to the internal scene collection /// </summary> /// <param name="scene">New scene</param> private void AddScene(Scene scene) { this.scenes.Add(scene); this.scenes.Sort( delegate(Scene p1, Scene p2) { return(p2.Order.CompareTo(p1.Order)); }); scene.Initialize(); scene.Initialized(); scene.SetResources(); }
private void InitScene(Scene scene) { scene.Initialize(); }