Exemple #1
0
        private IEnumerable RunProductionCycle()
        {
            var duration = _workplace.BeginProduction();

            while (duration > 0f)
            {
                duration -= DeltaTime;

                yield return(null);
            }

            _workplace.EndProduction();
        }