private IEnumerable RunProductionCycle() { var duration = _workplace.BeginProduction(); while (duration > 0f) { duration -= DeltaTime; yield return(null); } _workplace.EndProduction(); }