Beispiel #1
0
        public override void Update(DwarfTime gameTime, ChunkManager chunks, Camera camera)
        {
            if (ParticleTimer.HasTriggered)
            {
                PlayState.ParticleManager.Trigger("star_particle", Sprite.Position, Color.White, 1);
            }
            DeathTimer.Update(gameTime);
            ParticleTimer.Update(gameTime);

            if (DeathTimer.HasTriggered)
            {
                Physics.Die();
            }

            base.Update(gameTime, chunks, camera);
        }