public void SetScreen(Screen newScreen, string args) { if (currentScreen != null) { currentScreen.Unload(); currentScreen = null; } currentScreen = newScreen; currentScreen.LoadContent(Content, args); }
public void SetScreen(Screen newScreen) { if(currentScreen != null) { currentScreen.Unload(); currentScreen = null; } currentScreen = newScreen; currentScreen.LoadContent(Content); }