public void AddEatenFruit(Fruit.EType type) { Sprite sprite = fruitAtlas.GetSprite(type.ToString()); Image item = Instantiate(eatenFruitPref, eatenFruitContent).GetComponent <Image>(); item.sprite = sprite; item.transform.SetAsFirstSibling(); }
public void AddEatenFruit(Fruit.EType type) { eatenFruitList.Add(type); StageUIManager.Instance.AddEatenFruit(type); }