Exemplo n.º 1
0
    public void SetIndexRand()
    {
        EndlessScrollLayout bsv = GetComponent <EndlessScrollLayout>();
        int index = Random.Range(0, bsv.ObjectCount - 1);

        Debug.Log(index);
        bsv.index = index;
    }
Exemplo n.º 2
0
    public void SetMaxIndex()
    {
        EndlessScrollLayout bsv = GetComponent <EndlessScrollLayout>();

        bsv.index = bsv.ObjectCount - 1;
    }