Esempio n. 1
0
    private void CreateCollectedStuffPopUps()
    {
        var position = transform.position;

        LootPopup.Create(position, AccumulatedExp, PrefabLootPopup);
        ArrayList itemList = new ArrayList(CollectedItems);

        StartCoroutine(CreateItemPopUps(position, itemList));
    }
Esempio n. 2
0
    private IEnumerator CreateItemPopUps(Vector3 position, ArrayList itemList)
    {
        yield return(new WaitForSeconds(TimeBetweenPopUps));

        foreach (var item in itemList)
        {
            LootPopup.Create(position, item.ToString(), PrefabLootPopup);
            yield return(new WaitForSeconds(TimeBetweenPopUps));
        }
    }