Example #1
0
        public void Initialise(GraphicsDeviceManager graphics)
        {
            _graphics = graphics;

            var opening = new Opening();
            opening.StartGame += OpeningOnStartGame;
            opening.CreateBindings();
            CurrentScreen = opening;

            CurrentScreen.Initialise(graphics);
        }
Example #2
0
        private void SwitchScreen(BaseScreen newScreen)
        {
            _screenChange = true;
            CurrentScreen.Dispose();
            newScreen.CreateBindings();

            newScreen.Initialise(_graphics);

            CurrentScreen = newScreen;

            _screenChange = false;
        }