Пример #1
0
        public override void Update(GameTime gameTime)
        {
            base.Update(gameTime);

            if (State == Screen.ScreenState.Active)
            {
                timeElapsed += gameTime.ElapsedGameTime;

                if (timeElapsed >= duration)
                {
                    ScreenManager.LoadScreen(new MainMenuScreen(ScreenManager));
                }
            }
        }
Пример #2
0
 void menuButton_Selected(object sender, EventArgs e)
 {
     ScreenManager.LoadScreen(new MainMenuScreen(ScreenManager));
 }
Пример #3
0
 void storeButton_Selected(object sender, EventArgs e)
 {
     ScreenManager.LoadScreen(new StoreScreen(ScreenManager));
 }
Пример #4
0
 void playButton_Selected(object sender, EventArgs e)
 {
     ScreenManager.LoadScreen(new GameplayScreen(ScreenManager));
 }