Ejemplo n.º 1
0
        override public void Update(DwarfTime gameTime, ChunkManager chunks, Camera camera)
        {
            base.Update(gameTime, chunks, camera);

            if (!Voxel.IsValid || Voxel.IsEmpty)
            {
                Die();
            }

            DestroyTimer.Update(gameTime);

            if (DestroyTimer.HasTriggered)
            {
                Die();
                chunks.KillVoxel(Voxel);
            }
        }
Ejemplo n.º 2
0
        public void Update(DwarfTime gameTime, ChunkManager chunks, Camera camera)
        {
            if (firstIter)
            {
                if (!Voxel.IsValid || Voxel.TypeID == 0)
                {
                    Delete();
                }
                firstIter = false;
            }

            DestroyTimer.Update(gameTime);

            if (DestroyTimer.HasTriggered)
            {
                Die();
                chunks.KillVoxel(Voxel);
            }
        }