/// <summary> /// Updates the background. /// </summary> /// <param name="gameTime">The GameTime.</param> private void UpdateBackground(GameTime gameTime) { if (!_isDead) { _animatedBackground.Update(gameTime); } }
protected override void OnUpdateFrame(FrameEventArgs e) { base.OnUpdateFrame(e); // Update UI refreshButton.Update(MouseState); exitButton.Update(MouseState); tomorrowIoData?.Update(MouseState); openWeatherMapData?.Update(MouseState); // Update Background oTime += (float)e.Time; bg.Update(this, oTime); }