示例#1
0
 void button_Clicked(object sender, System.EventArgs a)
 {
     this.Remove();
     // ScreenManager.AddScreen(playScreen);
     playScreen.UnfreezeScreen();
     playScreen.restoreGame();
 }
示例#2
0
 public override void Update(GameTime gameTime)
 {
     treadmillAnimation.Update(gameTime);
     if (Constants.isRunning)
     {
         playScreen.GetPlayer().Collided(Constants.runningEffect);
         Constants.ResetFlags();
     }
     if (counter == 600)
     {
         this.Remove();
         playScreen.player.ReInitializeRunAnimation();
         playScreen.UnfreezeScreen();
     }
     counter++;
     bar.Update(gameTime);
     playScreen.bar.Update(gameTime);
     playScreen.bar.SetCurrentValue(playScreen.player.Immunity);
     base.Update(gameTime);
 }