예제 #1
0
파일: LoadingScreen.cs 프로젝트: Nesokas/hs
        private LoadingScreen(ScreenManager screenManager, bool loadingIsSlow, GameScreen[] screensToLoad)
        {
            this.loadingIsSlow = loadingIsSlow;
            this.screensToLoad = screensToLoad;

            TransitionOnTime = TimeSpan.FromSeconds(0.5);
        }
예제 #2
0
파일: ScreenManager.cs 프로젝트: Nesokas/hs
        // Add screens to screenManager
        public void AddScreen(GameScreen screen, PlayerIndex? controllingPlayer)
        {
            screen.ControllingPlayer = controllingPlayer;
            screen.ScreenManager = this;
            screen.IsExiting = false;

            if (isInitialized)
            {
                screen.Activate(false);
                screen.LoadContent();
            }

            screens.Add(screen);
        }
예제 #3
0
파일: ScreenManager.cs 프로젝트: Nesokas/hs
        // Remove screen from sceneManager
        public void RemoveScreen(GameScreen screen)
        {
            if (isInitialized)
            {
                screen.Unload();
            }

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