Exemplo n.º 1
0
        public void Initialise(GraphicsDeviceManager graphics)
        {
            _graphics = graphics;

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

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

            newScreen.Initialise(_graphics);

            CurrentScreen = newScreen;

            _screenChange = false;
        }