Beispiel #1
0
    void CreateBounds()
    {
        // TODO: Create bounds using first and last child's position

        if (transform.childCount > 1)
        {
            firstChildPosY = transform.GetChild(0).transform.position.y;
            lastChildPosY  = transform.GetChild(transform.childCount - 2).transform.localPosition.y;
        }

        scrollMovement.SetBoundaries(-lastChildPosY + spacing);
    }