예제 #1
0
파일: WhiteNoise.cs 프로젝트: tanis2000/FEZ
 public override void Initialize()
 {
   base.Initialize();
   this.NoiseTexture = this.CMProvider.Get(CM.EndCutscene).Load<Texture2D>("Other Textures/noise");
   this.sTvOff = this.CMProvider.Get(CM.EndCutscene).Load<SoundEffect>("Sounds/Ending/Cutscene64/TVOff");
   this.VignetteEffect = new VignetteEffect();
   this.ScanlineEffect = new ScanlineEffect();
 }
예제 #2
0
 public override void Initialize()
 {
   base.Initialize();
   this.MakeDot();
   this.RtHandle = this.TargetRenderer.TakeTarget();
   this.VignetteEffect = new VignetteEffect();
   this.ScanlineEffect = new ScanlineEffect();
   this.NoiseTexture = this.CMProvider.Get(CM.EndCutscene).Load<Texture2D>("Other Textures/noise");
   this.sAppear = this.CMProvider.Get(CM.EndCutscene).Load<SoundEffect>("Sounds/Ending/Cutscene64/DotAppear");
   this.sStartMove = this.CMProvider.Get(CM.EndCutscene).Load<SoundEffect>("Sounds/Ending/Cutscene64/DotStartMove");
   this.sProgressiveAppear = this.CMProvider.Get(CM.EndCutscene).Load<SoundEffect>("Sounds/Ending/Cutscene64/DotsProgressiveAppear");
   this.sNoise = this.CMProvider.Get(CM.EndCutscene).Load<SoundEffect>("Sounds/Ending/Cutscene64/WhiteNoise");
 }
예제 #3
0
 protected override void Dispose(bool disposing)
 {
   base.Dispose(disposing);
   this.TargetRenderer.ReturnTarget(this.RtHandle);
   this.RtHandle = (RenderTargetHandle) null;
   this.CloneMesh.Dispose();
   this.DotMesh.Dispose();
   this.CloneMesh = this.DotMesh = (Mesh) null;
   this.VignetteEffect.Dispose();
   this.VignetteEffect = (VignetteEffect) null;
   this.ScanlineEffect.Dispose();
   this.ScanlineEffect = (ScanlineEffect) null;
   this.DotEffect = (InstancedDotEffect) null;
 }