public override bool Update() { if (this.enableFade) { float factor = 1f; if (SMaterialEffect_Base.UpdateFadeState(out factor, ref this.fadeState, ref this.fadeTimer, this.fadeInterval, false)) { this.SetFactor(factor); } if (this.fadeState == SMaterialEffect_Base.FadeState.Stopped) { this.Stop(); return(true); } } return(false); }
public override bool Update() { if (this.enableFade) { float alpha = 1f; if (SMaterialEffect_Base.UpdateFadeState(out alpha, ref this.fadeState, ref this.fadeTimer, this.fadeInterval, this.forceUpdateFactor)) { this.SetAlpha(alpha); } if (this.fadeState == SMaterialEffect_Base.FadeState.Stopped) { this.Stop(); return(true); } } return(false); }