public GameObject CreatePrefab(Recipe.Ingredient[] fabricationIngredients, float fabricationTime, HashedString kAnim_ID, string[] fabricators, string recipeDescription, Color color) { GameObject gameObject = EntityTemplates.CreateBasicEntity(this.id, this.name, description, 1f, true, Assets.GetAnim(kAnim_ID), "ui", Grid.SceneLayer.BuildingFront, SimHashes.Creature, null, 293f); ResearchPointObject researchPointObject = gameObject.AddOrGet <ResearchPointObject>(); researchPointObject.TypeID = this.id; string id = this.id; float outputUnits = 1f; string name = this.name; _recipe = new Recipe(id, outputUnits, (SimHashes)0, name, recipeDescription, 0); _recipe.SetFabricators(fabricators, fabricationTime); _recipe.SetIcon(Assets.GetSprite("research_type_icon"), color); if (fabricationIngredients != null) { foreach (Recipe.Ingredient ingredient in fabricationIngredients) { _recipe.AddIngredient(ingredient); } } return(gameObject); }