Exemple #1
0
        public void AddScreen(GameScreen screen)
        {
            screen.ScreenManager = this;

            if (_isInitialized)
            {
                screen.Initialize();
                screen.InitializeScreen();
                screen.LoadContent();
            }

            _screens.Add(screen);
        }
        public void AddScreen(GameScreen screen)
        {
            screen.ScreenManager = this;

            if (_isInitialized)
            {
                screen.Initialize();
                screen.InitializeScreen();
                screen.LoadContent();
            }

            _screens.Add(screen);
        }