public void AddProductionInstructions(ref List <Instruction> instructions, ref Coordinates start, string itemType) { Manual manual = manualManager.GetManual(itemType); AddResourceInstructions(ref instructions, ref start, new List <string>(manual.Items)); List <Coordinates> path; path = navigationServices.GetPath(start, "Assembler", new List <string> { itemType }, null); if (path == null) { Debug.LogError("Workstation not available!"); return; } Instruction instruction = new Instruction(path, "Assembler"); instruction.Output = new List <string>(manual.Items); instruction.AddInput(itemType); instructions.Add(instruction); start = path[path.Count - 1]; }