public void ModifyConstructedRecipeList(Recipe recipe, bool isAdd)
 {
     if (isAdd)
     {
         GameObject recipeGO = GameObject.Instantiate(RecipeNameTemplate);
         recipeGO.transform.parent = _constructedRecipeView.content;
         RecipeNameItem item = recipeGO.GetComponent <RecipeNameItem>();
         item.Init(this, recipe.Name);
     }
 }
 public void BuildConstructedRecipeList()
 {
     LoadConstructedRecipeList();
     foreach (Recipe recipe in ConstructedRecipes)
     {
         GameObject recipeGO = GameObject.Instantiate(RecipeNameTemplate);
         recipeGO.transform.parent = _constructedRecipeView.content;
         RecipeNameItem item = recipeGO.GetComponent <RecipeNameItem>();
         item.Init(this, recipe.Name);
     }
 }
    public void ConstructRecipeNameList()
    {
        List <string> recipeNames = LoadRecipeNameString();

        foreach (string recipeName in recipeNames)
        {
            GameObject recipeGO = GameObject.Instantiate(RecipeNameTemplate);
            recipeGO.transform.parent = _recipeNameView.content;
            RecipeNameItem item = recipeGO.GetComponent <RecipeNameItem>();
            item.Init(this, recipeName);
        }
    }