protected override void CreateItem(InfiniteItemBehavior ItemBehavior)
    {
        for (int k = 0; k < _BaseCreatureCount; ++k)
        {
            float        posx = k * 150.0f;
            CreatureIcon icon = UIResourceMgr.CreatePrefab <CreatureIcon>(BUNDLELIST.PREFABS_UI_COMMON, ItemBehavior.transform, "CreatureIcon");
            icon.name = k.ToString();
            icon.transform.localPosition = new Vector3(posx, 0.0f, 0.0f);

            ItemBehavior.AddItemElement(icon);
        }
    }
Ejemplo n.º 2
0
    protected override void CreateItem(InfiniteItemBehavior ItemBehavior)
    {
        GuildRaidRankingItem guildRaidRankElement = UIResourceMgr.CreatePrefab <GuildRaidRankingItem>(BUNDLELIST.PREFABS_UI_GUILDRAID, ItemBehavior.transform, "GuildRaidRankingItem");

        ItemBehavior.AddItemElement(guildRaidRankElement);
    }