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();
    }
Exemple #2
0
    public void AddEatenFruit(Fruit.EType type)
    {
        eatenFruitList.Add(type);

        StageUIManager.Instance.AddEatenFruit(type);
    }