상속: IRenderable, IDynamicObject
예제 #1
0
 public void SwitchToScene(Scene newScene, bool transition=false)
 {
     if(currentScene != null) {
         currentScene.Exit();
     }
     LoadScene(newScene);
 }
예제 #2
0
 public void SwitchToScene(Scene newScene, bool transition=false) {
     if(currentScene != null) {
         currentScene.Exit();
     }
     currentScene = newScene;
     currentScene.LoadContent(Content);
     currentScene.Initialize();
 }
예제 #3
0
 private void LoadScene(Scene scene)
 {
     currentScene = scene;
     currentScene.LoadContent(Content);
     currentScene.Initialize();
 }