public void Initialise(GraphicsDeviceManager graphics) { _graphics = graphics; var opening = new Opening(); opening.StartGame += OpeningOnStartGame; opening.CreateBindings(); CurrentScreen = opening; CurrentScreen.Initialise(graphics); }
private void SwitchScreen(BaseScreen newScreen) { _screenChange = true; CurrentScreen.Dispose(); newScreen.CreateBindings(); newScreen.Initialise(_graphics); CurrentScreen = newScreen; _screenChange = false; }