public void InitCanvas(JsonRecipeReader json_recipe_reader) { Debug.Log("HEYYYYYYYY"); stepDescribe.text = json_recipe_reader.getCurrentRecipeTitle(); UpdateHud(json_recipe_reader); print("here :" + json_recipe_reader.getCurrentRecipeTitle()); stepLength = json_recipe_reader.getCurrentRecipeNbSteps(); squareArray = new Square[stepLength]; updateArrows(); }
public void InitCanvasIngredientList(JsonRecipeReader json_recipe_reader) { image.enabled = false; print("init ingredientlist"); string str = json_recipe_reader.getCurrentRecipeTitle() + "\n"; for (int i = 0; i < json_recipe_reader.getCurrentRecipeNbIngredient(); i++) { str += "- " + json_recipe_reader.getCurrentRecipeIngredientName(i) + "\n"; } listText.text = str; }