//! Called by unity engine on start up to initialize variables. public new void Start() { base.Start(); recipes = new BasicMachineRecipe[] { new BasicMachineRecipe("Copper Ore", "Copper Ingot"), new BasicMachineRecipe("Iron Ore", "Iron Ingot"), new BasicMachineRecipe("Tin Ore", "Tin Ingot"), new BasicMachineRecipe("Aluminum Ore", "Aluminum Ingot"), new BasicMachineRecipe("Regolith", "Glass Block") }; PlayerController playerController = GameObject.Find("Player").GetComponent <PlayerController>(); BlockDictionary blockDictionary = new BlockDictionary(playerController); BasicMachineRecipe[] modRecipes = blockDictionary.GetMachineRecipes("Smelter"); if (modRecipes != null) { List <BasicMachineRecipe> recipeList = recipes.ToList(); foreach (BasicMachineRecipe recipe in modRecipes) { recipeList.Add(recipe); } recipes = recipeList.ToArray(); } }
//! Called by unity engine on start up to initialize variables. public new void Start() { base.Start(); recipes = new BasicMachineRecipe[] { new BasicMachineRecipe("Copper Ingot", "Copper Wire"), new BasicMachineRecipe("Aluminum Ingot", "Aluminum Wire"), new BasicMachineRecipe("Iron Ingot", "Iron Pipe"), new BasicMachineRecipe("Steel Ingot", "Steel Pipe") }; PlayerController playerController = GameObject.Find("Player").GetComponent <PlayerController>(); BlockDictionary blockDictionary = new BlockDictionary(playerController); BasicMachineRecipe[] modRecipes = blockDictionary.GetMachineRecipes("Extruder"); if (modRecipes != null) { List <BasicMachineRecipe> recipeList = recipes.ToList(); foreach (BasicMachineRecipe recipe in modRecipes) { recipeList.Add(recipe); } recipes = recipeList.ToArray(); } }
//! Called by unity engine on start up to initialize variables. public new void Start() { base.Start(); recipes = new BasicMachineRecipe[] { new BasicMachineRecipe("Copper Plate", "Copper Gear"), new BasicMachineRecipe("Iron Plate", "Iron Gear"), new BasicMachineRecipe("Tin Plate", "Tin Gear"), new BasicMachineRecipe("Bronze Plate", "Bronze Gear"), new BasicMachineRecipe("Steel Plate", "Steel Gear"), new BasicMachineRecipe("Aluminum Plate", "Aluminum Gear") }; PlayerController playerController = GameObject.Find("Player").GetComponent <PlayerController>(); BlockDictionary blockDictionary = new BlockDictionary(playerController); BasicMachineRecipe[] modRecipes = blockDictionary.GetMachineRecipes("Gear Cutter"); if (modRecipes != null) { List <BasicMachineRecipe> recipeList = recipes.ToList(); foreach (BasicMachineRecipe recipe in modRecipes) { recipeList.Add(recipe); } recipes = recipeList.ToArray(); } }