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); } }
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); } }
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); }