public void UnloadContent() { if (nextPictureSet != null) { nextPictureSet.Unload(); } }
public void Update(GameTime gameTime) { this.camera.Update(gameTime); this.lighting.Update(gameTime, camera); if (nextPictureSet != null) { textureRotationTime += (float)gameTime.ElapsedRealTime.TotalSeconds; if (textureRotationTime >= textureRotationDuration) { if (currentPictureSet != null) { currentPictureSet.Unload(); } currentPictureSet = nextPictureSet; nextPictureSet = null; textureRotationTime = 0.0f; } } if (IsShifting) { currentShiftTime += (float)gameTime.ElapsedGameTime.TotalSeconds; if (currentShiftTime > ShiftDuration) { shiftingChips.Clear(); shiftX = 0; shiftY = 0; } } foreach (Chip chip in chips) { chip.Update(gameTime); } }
public override void UnloadContent() { pictureSet.Unload(); base.UnloadContent(); }