Пример #1
0
    protected override void OnUpdateItem(InfiniteScrollItemSample item)
    {
        var index = item.index;

        item.gameObject.SetActive(0 <= index && index < textureNames.Length);

        if (item.gameObject.activeSelf)
        {
            item.UpdateTexture(textureNames[index]);
        }
    }
Пример #2
0
    protected virtual void OnUpdateItem(InfiniteScrollItemSample item)
    {
        var index = ScrollPageControl.GetLoopIndex(item.index, textureNames.Length);

        item.UpdateTexture(textureNames[index]);
    }