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