コード例 #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);
     }
 }
コード例 #2
0
ファイル: TouchGlare.cs プロジェクト: ExternaDev/DriveGame
 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);
     }
 }
コード例 #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);
 }