Esempio n. 1
0
 public void UnloadContent()
 {
     if (nextPictureSet != null)
     {
         nextPictureSet.Unload();
     }
 }
Esempio n. 2
0
        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);
            }
        }
Esempio n. 3
0
        public override void UnloadContent()
        {
            pictureSet.Unload();

            base.UnloadContent();
        }