public void Desaturate(float endVal, float time, iTween.EaseType easeType, EffectListener listener = null) { this.GetCurrEffects(); if (this.m_FullScreenEffects != null) { this.m_FullScreenEffects.DesaturationEnabled = true; this.m_desatListener = listener; this.BeginEffect("desat", "OnDesat", "OnDesatComplete", this.m_FullScreenEffects.Desaturation, endVal, time, easeType); } }
public void Blur(float blurVal, float time, iTween.EaseType easeType, EffectListener listener = null) { this.m_ActiveEffectsCount++; this.GetCurrEffects(); if (this.m_FullScreenEffects != null) { this.m_FullScreenEffects.BlurEnabled = true; this.m_blurListener = listener; this.BeginEffect("blur", "OnBlur", "OnBlurComplete", this.m_FullScreenEffects.BlurBlend, blurVal, time, easeType); } }
private void Awake() { if (instance == null) { instance = this; } else if (instance != null) { Destroy(gameObject); } }
public void EndStandardBlurVignette(float time, EffectListener listener = null) { if (this.m_StdBlurVignetteCount != 0) { this.m_StdBlurVignetteCount--; if (this.m_StdBlurVignetteCount == 0) { this.StopBlur(time, iTween.EaseType.easeOutCirc, null); this.StopVignette(time, iTween.EaseType.easeOutCirc, listener); } } }
public void BlendToColor(Color blendColor, float endVal, float time, iTween.EaseType easeType, EffectListener listener = null) { this.GetCurrEffects(); if (this.m_FullScreenEffects != null) { this.m_FullScreenEffects.enabled = true; this.m_FullScreenEffects.BlendToColorEnable = true; this.m_FullScreenEffects.BlendToColor = blendColor; this.m_blendToColorListener = listener; this.BeginEffect("blendtocolor", "OnBlendToColor", "OnBlendToColorComplete", 0f, endVal, time, easeType); } }