Ejemplo n.º 1
0
        //The constructor is private because when we want to use a loadingscreen we should use the static Load function
        private LoadingScreen(ScreenManager screenManager, bool loadingIsSlow, GameScreen[] screensToLoad)
        {
            this.loadingIsSlow = loadingIsSlow;
            this.screensToLoad = screensToLoad;

            TransitionOnTime = TimeSpan.FromSeconds(0.5);
        }
Ejemplo n.º 2
0
        public void AddScreen(GameScreen screen)
        {
            screen.ScreenManager = this;
            screen.IsExiting = false;
            screen.Activate();

            screens.Add(screen);
        }
Ejemplo n.º 3
0
        public void RemoveScreen(GameScreen screen)
        {
            screen.Unload();

            screens.Remove(screen);
            tempScreensList.Remove(screen);
        }