Inheritance: IRenderable, IDynamicObject
Exemplo n.º 1
0
 public void SwitchToScene(Scene newScene, bool transition=false)
 {
     if(currentScene != null) {
         currentScene.Exit();
     }
     LoadScene(newScene);
 }
Exemplo n.º 2
0
 public void SwitchToScene(Scene newScene, bool transition=false) {
     if(currentScene != null) {
         currentScene.Exit();
     }
     currentScene = newScene;
     currentScene.LoadContent(Content);
     currentScene.Initialize();
 }
Exemplo n.º 3
0
 private void LoadScene(Scene scene)
 {
     currentScene = scene;
     currentScene.LoadContent(Content);
     currentScene.Initialize();
 }