Esempio n. 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));
                }
            }
        }
 void menuButton_Selected(object sender, EventArgs e)
 {
     ScreenManager.LoadScreen(new MainMenuScreen(ScreenManager));
 }
Esempio n. 3
0
 void storeButton_Selected(object sender, EventArgs e)
 {
     ScreenManager.LoadScreen(new StoreScreen(ScreenManager));
 }
Esempio n. 4
0
 void playButton_Selected(object sender, EventArgs e)
 {
     ScreenManager.LoadScreen(new GameplayScreen(ScreenManager));
 }