public override void Update(TimeSpan elapsedTime)
{
if (this.game != null && !this.game.HasExited)
{
if (this.splashState)
{
#region WAVE SOFTWARE LICENSE AGREEMENT
position.X = (this.Width / 2.0f) - (this.splashScreen.Width / 2.0f);
position.Y = (this.Height / 2.0f) - (this.splashScreen.Height / 2.0f);
this.time += elapsedTime;
if (time > TimeSpan.FromSeconds(2))
{
this.splashState = false;
}
#endregion
}
else
{
if (WaveServices.Input.KeyboardState.Escape == ButtonState.Pressed)
{
WaveServices.Platform.Exit();
}
else {
this.game.UpdateFrame(elapsedTime);
}
}
}
}