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); } }
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); } }