예제 #1
0
파일: Reboot.cs 프로젝트: tanis2000/FEZ
 public override void Update(GameTime gameTime)
 {
   if (this.GameState.Loading || this.GameState.Paused || this.SinceCreated.TotalSeconds <= 7.0)
     return;
   if (this.GameState.InCutscene && Intro.Instance != null)
     ServiceHelper.RemoveComponent<Intro>(Intro.Instance);
   Intro intro = new Intro(this.Game)
   {
     Fake = true,
     FakeLevel = this.ToLevel,
     Glitch = true
   };
   this.TimeManager.TimeFactor = this.TimeManager.DefaultTimeFactor;
   this.TimeManager.CurrentTime = DateTime.Now;
   ServiceHelper.AddComponent((IGameComponent) intro);
   Waiters.Wait(0.100000001490116, (Action) (() => ServiceHelper.RemoveComponent<Reboot>(this)));
   this.Enabled = false;
 }
예제 #2
0
 private void DoSellScreen(bool forceRestart)
 {
   if (forceRestart)
     this.GameState.Reset();
   if (this.GameState.InCutscene && Intro.Instance != null)
     ServiceHelper.RemoveComponent<Intro>(Intro.Instance);
   Intro intro = new Intro(this.Game)
   {
     Sell = true,
     FadeBackToGame = !forceRestart
   };
   ServiceHelper.AddComponent((IGameComponent) intro);
   intro.LoadVideo();
 }