private void DrillingRigActive() { var drillingRig = _building as DrillingRig; var deltaMinute = drillingRig.TimeChangeStatus.GetDeltaMinute(DateTime.Now); if (deltaMinute >= drillingRig.TimeDrilling) { lock (_buildingService) { _building = _buildingService.FinishDrilling(drillingRig); _updateThread.SetSleep(10); } } else { SetNextSleep(drillingRig.TimeDrilling, deltaMinute); } }