示例#1
0
文件: MenuCube.cs 项目: tanis2000/FEZ
 protected override void Dispose(bool disposing)
 {
   if (this.oldTextureCache != null)
   {
     this.AoInstance.ArtObject.Cubemap = this.oldTextureCache;
     new ArtObjectMaterializer(this.AoInstance.ArtObject).RecomputeTexCoords(true);
   }
   this.LevelManager.ArtObjects.Remove(this.AoInstance.Id);
   this.AoInstance.SoftDispose();
   this.GameState.SkyOpacity = 1f;
   this.PlayerManager.CanControl = true;
   if (this.InRtHandle != null)
   {
     this.TargetRenderingManager.UnscheduleHook(this.InRtHandle.Target);
     this.TargetRenderingManager.ReturnTarget(this.InRtHandle);
   }
   this.InRtHandle = (RenderTargetHandle) null;
   if (this.OutRtHandle != null)
   {
     this.TargetRenderingManager.UnscheduleHook(this.OutRtHandle.Target);
     this.TargetRenderingManager.ReturnTarget(this.OutRtHandle);
   }
   this.OutRtHandle = (RenderTargetHandle) null;
   this.HidingPlanes.Dispose();
   this.GoldenCubes.Dispose();
   this.AntiCubes.Dispose();
   this.TomePages.Dispose();
   this.Maps.Dispose();
   this.Highlights.Dispose();
   this.BlurEffect.Dispose();
   if (this.eBackground != null && !this.eBackground.Dead)
   {
     this.eBackground.FadeOutAndDie(0.25f, false);
     this.eBackground = (SoundEmitter) null;
   }
   this.GameService.CloseScroll((string) null);
   if (!this.wasLowPass)
     this.SoundManager.FadeFrequencies(false);
   MenuCube.Instance = (MenuCube) null;
   base.Dispose(disposing);
 }
示例#2
0
文件: MenuCube.cs 项目: tanis2000/FEZ
 public MenuCube(Game game)
   : base(game)
 {
   this.UpdateOrder = -9;
   this.DrawOrder = 1000;
   MenuCube.Instance = this;
 }