private void Awake()
    {
        _carousel = GetComponent <Carousel.Carousel>();
        _index    = GetComponent <Carousel.CarouselIndex>();

        _index.OnObjectInitialized  += NewContent;
        _index.OnLeastToMostIndices += (_, most, __, highI) => NewContent(most, highI);
        _index.OnMostToLeastIndices += (least, _, lowI, __) => NewContent(least, lowI);
    }
Exemplo n.º 2
0
        void Awake()
        {
            _Carousel      = GetComponent <Carousel>();
            _CarouselIndex = GetComponent <CarouselIndex>();

            _Carousel.OnLeastToMost += OnLeastToMost;
            _Carousel.OnMostToLeast += OnMostToLeast;

            _CarouselIndex.OnLeastToMostIndices += OnLeastToMostIndices;
            _CarouselIndex.OnMostToLeastIndices += OnMostToLeastIndices;
        }