WaveEngine.Components.Transitions.ColorFadeTransition.Update C# (CSharp) Method

Update() protected method

Updates the specified game time.
protected Update ( System.TimeSpan gameTime ) : void
gameTime System.TimeSpan The game time.
return void
        protected override void Update(TimeSpan gameTime)
        {
            if (this.Lerp <= 0.5f)
            {
                this.UpdateSources(gameTime);
            }
            else
            {
                if (this.Sources != null)
                {
                    for (int i = 0; i < this.Sources.Length; i++)
                    {
                        var stackedContext = this.Sources[i];

                        if ((stackedContext.Behavior & ScreenContextBehaviors.UpdateInBackground) != 0)
                        {
                            stackedContext.Draw(gameTime);
                        }
                    }
                }

                this.UpdateTarget(gameTime);
            }
        }