Esempio n. 1
0
 public void IngredientChange(Ingredient ingredient, GameObject parentPanel)
 {
     this.ingredient  = ingredient;
     this.parentPanel = parentPanel;
     korean.Change(ingredient.korean);
     english.Change(ingredient.english);
     image.sprite = Resources.Load <Sprite>("EWG_Image\\" + ingredient.ewgGrade);
 }
Esempio n. 2
0
    public void InfoChange(Product product, GameObject parentPanel)
    {
        this.product     = product;
        this.parentPanel = parentPanel;

        TextPanel textPanel = transform.GetChild(0).GetComponent <TextPanel>();

        textPanel.Change(product.name);
    }
Esempio n. 3
0
 public void InfoChange(Product product, GameObject parentPanel)
 {
     this.product     = product;
     this.parentPanel = parentPanel;
     category.text    = product.categoryKorean();
     company.text     = product.company;
     //if (product.imagePath != null)
     //image.texture = ReadImage(product.imagePath);
     //else
     image.texture = Resources.Load <Texture2D>("TestImage\\" + product.id);
     ChangeImageSize(5);
     productName.Change(product.name);
 }