Esempio n. 1
0
        private void StartManufacturing()
        {
            var nextQueuedPart = _queue.Pop();

            if (nextQueuedPart != null)
            {
                _processedItem      = nextQueuedPart;
                _processedBlueprint = WorkshopRecipeDatabase.ProcessPart(nextQueuedPart.Part);
                foreach (var resource in _processedBlueprint)
                {
                    resource.Units *= ConversionRate;
                }
            }
        }
Esempio n. 2
0
        private void StartManufacturing()
        {
            var nextQueuedPart = _queue.Pop();

            if (nextQueuedPart != null)
            {
                _processedItem      = nextQueuedPart;
                _processedBlueprint = WorkshopRecipeDatabase.ProcessPart(nextQueuedPart.Part, workshopRecipe);

                if (Animate && _heatAnimation != null && _workAnimation != null)
                {
                    StartCoroutine(StartAnimations());
                }
            }
        }