Beispiel #1
0
 public void Flash()
 {
     if (useGlare)
     {
         if (glare == null)
         {
             glare = this.gameObject.AddComponent <GlareEffect>();
         }
         if (!glare.isInitialized)
         {
             glare.Init(BloomIntensity, Color.white);
         }
         glare.StartFlashReturn(flashLength);
     }
     if (useChroma)
     {
         if (ChromaticAberr == null)
         {
             ChromaticAberr = this.gameObject.AddComponent <ChromaticAbrevEffect>();
         }
         if (!ChromaticAberr.isInitialized)
         {
             ChromaticAberr.Init(ChromaticIntensity);
         }
         ChromaticAberr.StartFlashReturn(flashLength);
     }
 }
Beispiel #2
0
 public void Flash()
 {
     if (glare == null)
     {
         glare = this.gameObject.AddComponent <GlareEffect>();
         glare.Init(BloomIntensity);
     }
     if (ChromaticAberr == null)
     {
         ChromaticAberr = this.gameObject.AddComponent <ChromaticAbrevEffect>();
         ChromaticAberr.Init(ChromaticIntensity);
     }
 }
Beispiel #3
0
 public void StartFlash()
 {
     if (glare == null)
     {
         glare = this.gameObject.AddComponent <GlareEffect>();
         glare.Init(BloomIntensity, Color.white);
     }
     if (ChromaticAberr == null)
     {
         ChromaticAberr = this.gameObject.AddComponent <ChromaticAbrevEffect>();
         ChromaticAberr.Init(ChromaticIntensity);
     }
     glare.TurnOn(flashLength);
     ChromaticAberr.TurnOn(flashLength);
 }