Esempio n. 1
0
 private void Destroy()
 {
     if (this.Glitches != null)
     {
         ServiceHelper.RemoveComponent <NesGlitches>(this.Glitches);
     }
     this.Glitches = (NesGlitches)null;
     if (this.RtHandle != null)
     {
         this.TargetRenderer.UnscheduleHook(this.RtHandle.Target);
         this.TargetRenderer.ReturnTarget(this.RtHandle);
     }
     this.RtHandle = (RenderTargetHandle)null;
     if (this.SolidCubes != null)
     {
         this.SolidCubes.Dispose();
     }
     this.SolidCubes = (Mesh)null;
     if (this.WhiteCube != null)
     {
         this.WhiteCube.Dispose();
     }
     this.WhiteCube = (Mesh)null;
     if (this.RaysMesh != null)
     {
         this.RaysMesh.Dispose();
     }
     if (this.FlareMesh != null)
     {
         this.FlareMesh.Dispose();
     }
     this.RaysMesh = this.FlareMesh = (Mesh)null;
     if (this.InvertEffect != null)
     {
         this.InvertEffect.Dispose();
     }
     this.InvertEffect            = (InvertEffect)null;
     this.HexahedronAo            = (ArtObjectInstance)null;
     this.FirstUpdate             = true;
     this.sAmbientDrone           = this.sAku = this.sZoomIn = this.sHexAppear = this.sCubeAppear = this.sMotorSpin1 = this.sMotorSpin2 = this.sMotorSpinAOK = this.sMotorSpinCrash = this.sRayWhiteout = (SoundEffect)null;
     this.eAku                    = this.eAmbient = this.eMotor = (SoundEmitter)null;
     this.ActivePhase             = FinalRebuildHost.Phases.ZoomInNega;
     this.PhaseTime               = 0.0f;
     this.GameState.SkipRendering = false;
     this.GameState.HideHUD       = false;
 }
Esempio n. 2
0
 private void ChangePhaseTo(FinalRebuildHost.Phases phase)
 {
     this.PhaseTime   = 0.0f;
     this.ActivePhase = phase;
     this.Update(new GameTime());
 }
Esempio n. 3
0
 private void ChangePhaseTo(FinalRebuildHost.Phases phase)
 {
   this.PhaseTime = 0.0f;
   this.ActivePhase = phase;
   this.Update(new GameTime());
 }
Esempio n. 4
0
 private void Destroy()
 {
   if (this.Glitches != null)
     ServiceHelper.RemoveComponent<NesGlitches>(this.Glitches);
   this.Glitches = (NesGlitches) null;
   if (this.RtHandle != null)
   {
     this.TargetRenderer.UnscheduleHook(this.RtHandle.Target);
     this.TargetRenderer.ReturnTarget(this.RtHandle);
   }
   this.RtHandle = (RenderTargetHandle) null;
   if (this.SolidCubes != null)
     this.SolidCubes.Dispose();
   this.SolidCubes = (Mesh) null;
   if (this.WhiteCube != null)
     this.WhiteCube.Dispose();
   this.WhiteCube = (Mesh) null;
   if (this.RaysMesh != null)
     this.RaysMesh.Dispose();
   if (this.FlareMesh != null)
     this.FlareMesh.Dispose();
   this.RaysMesh = this.FlareMesh = (Mesh) null;
   if (this.InvertEffect != null)
     this.InvertEffect.Dispose();
   this.InvertEffect = (InvertEffect) null;
   this.HexahedronAo = (ArtObjectInstance) null;
   this.FirstUpdate = true;
   this.sAmbientDrone = this.sAku = this.sZoomIn = this.sHexAppear = this.sCubeAppear = this.sMotorSpin1 = this.sMotorSpin2 = this.sMotorSpinAOK = this.sMotorSpinCrash = this.sRayWhiteout = (SoundEffect) null;
   this.eAku = this.eAmbient = this.eMotor = (SoundEmitter) null;
   this.ActivePhase = FinalRebuildHost.Phases.ZoomInNega;
   this.PhaseTime = 0.0f;
   this.GameState.SkipRendering = false;
   this.GameState.HideHUD = false;
 }