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

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

            _screens.Add(screen);
        }
예제 #2
0
        public void AddScreen(GameScreen screen)
        {
            screen.ScreenManager = this;

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

            _screens.Add(screen);
        }