public void SwitchToScene(Scene newScene, bool transition=false) { if(currentScene != null) { currentScene.Exit(); } LoadScene(newScene); }
public void SwitchToScene(Scene newScene, bool transition=false) { if(currentScene != null) { currentScene.Exit(); } currentScene = newScene; currentScene.LoadContent(Content); currentScene.Initialize(); }
private void LoadScene(Scene scene) { currentScene = scene; currentScene.LoadContent(Content); currentScene.Initialize(); }